From: Tor L. <tm...@ik...> - 2008-08-19 12:48:09
|
>> But in MS-world, $HOME is (NULL). So my question changes to, how to find >> the user's home directory on MS windows programmatically? > > HOMEDRIVE + HOMEPATH Or as this is a GTK+ app anyway that we are talking about, g_get_home_dir(). (Although it is more Windows-like to use something like g_build_filename(g_get_user_config_dir(), "YourAppName", NULL) to get the folder where to store application-specific settings.) --tml |