Win32 equivalences of the XDG folders
authorTor Lillqvist <tml@iki.fi>
Wed, 25 Aug 2004 00:39:13 +0000 (00:39 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 25 Aug 2004 00:39:13 +0000 (00:39 +0000)
commita56aee27f687ea292bb85661e95b07141e2af90b
tree2c32d9bfd37033a4127df2ae67fd247b7cc05d78
parentd7bd1397a8cc910932916ee21481cf2f18c8afc1
Win32 equivalences of the XDG folders

2004-08-25  Tor Lillqvist  <tml@iki.fi>

Win32 equivalences of the XDG folders

* glib/gutils.c (get_special_folder): New function, calls
SHGetSpecialFolderLocation() to get path to places like the My
Documents folder.
(g_get_any_init): Use CSIDL_PROFILE as HOME if not
overridden by env vars.
(g_get_user_data_dir): Use CSIDL_PERSONAL.
(g_get_user_config_dir): Use CSIDL_APPDATA.
(g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
(g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
CSIDL_COMMON_DOCUMENTS.
(g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.

* configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.

* glib/glib.def: Add the new functions.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
glib/glib.def
glib/gutils.c