>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> On *nix we specify "HOME" with homepath_ = GetEnvPath("HOME"); Angus> On Windows, where $HOME doesn't exist, we currently use: Angus> homepath_ = GetEnvPath("HOMEDRIVE") + GetEnvPath("HOMEPATH"); Angus> Trouble is, this doesn't seem very robust. The lyx_init.txt Angus> output that I posted earlier this morning indicates that Angus> HOMEDRIVE=C: HOMEPATH=\ LOGNAME=Angus USERNAME=Angus Angus> USERPROFILE=C:\Documents and Settings\Angus Angus> The question is, where would an intelligent default location Angus> for the user .lyx dir be? I'd suggest that it should be Angus> C:\Documents and Settings\Angus\.lyx Angus> That would suggest code: homepath_ = GetEnvPath("USERPROFILE"); I think HOME is used for two unrelated things: 1/ the user_lyxdir. For windows, this should be something like $USERPROFILE/LyX, I think (LyX/Mac already has special code to set user_lyxdir, that should probably be generalized and cleaned up). 2/ the documents home. In windows this should be the 'My Documents' folder. So it is not as simple as replacing HOME with something else. JMarc