using lyx::support::FileInfo;
using lyx::support::FileSearch;
using lyx::support::GetEnv;
-using lyx::support::GetEnvPath;
using lyx::support::i18nLibFileSearch;
using lyx::support::LibFileSearch;
using lyx::support::Path;
using lyx::support::os::getTmpDir;
using lyx::support::os::setTmpDir;
+namespace os = lyx::support::os;
+
using std::endl;
using std::string;
using std::vector;
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;