Re: gtk_file_chooser page faults (win32)



David writes:
older systems like mine apparently don't have a HOME set by
default.

No Windows versions have HOME set by themselves. If there is a HOME,
it has been set by the user or some 3rd-party software (like
MSYS). Newer Windows versions set the USERPROFILE environment
variable, older (NT-based) set HOMEDRIVE and HOMEPATH. Win9x didn't
apparently set anything in the environment to indicate a home or
profile folder. (But there is an API one can use, that sometimes ells
something. See bug #105887.)

That g_get_home_dir() first checks for HOME is just in case somebody
wants to override, and out of Unix tradition.

--tml





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]