]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.C
Get rid of FileInfo::getNumberofLinks().
[lyx.git] / src / lyx_main.C
index 879e9c2df6560862ac6feee6ae955ed82ad59053..a4113088c3a102e58e71efa1e0ff02873f510ba0 100644 (file)
@@ -77,6 +77,8 @@ using lyx::support::user_lyxdir;
 using lyx::support::os::getTmpDir;
 using lyx::support::os::setTmpDir;
 
+namespace os = lyx::support::os;
+
 using std::endl;
 using std::string;
 using std::vector;
@@ -552,7 +554,7 @@ void LyX::queryUserLyXDir(bool explicit_userdir)
 
        if (!createDirectory(user_lyxdir(), 0755)) {
                // Failed, let's use $HOME instead.
-               user_lyxdir(GetEnvPath("HOME"));
+               user_lyxdir(os::homepath());
                lyxerr << bformat(_("Failed. Will use %1$s instead."),
                        user_lyxdir()) << endl;
                return;