On *nix we specify "HOME" with homepath_ = GetEnvPath("HOME");
On Windows, where $HOME doesn't exist, we currently use: homepath_ = GetEnvPath("HOMEDRIVE") + GetEnvPath("HOMEPATH"); Trouble is, this doesn't seem very robust. The lyx_init.txt output that I posted earlier this morning indicates that HOMEDRIVE=C: HOMEPATH=\ LOGNAME=Angus USERNAME=Angus USERPROFILE=C:\Documents and Settings\Angus The question is, where would an intelligent default location for the user .lyx dir be? I'd suggest that it should be C:\Documents and Settings\Angus\.lyx That would suggest code: homepath_ = GetEnvPath("USERPROFILE"); Thoughts? -- Angus