diff options
Diffstat (limited to 'gconf/gconfd.c')
-rw-r--r-- | gconf/gconfd.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c index b6fb103f..1ed3d083 100644 --- a/gconf/gconfd.c +++ b/gconf/gconfd.c @@ -397,14 +397,10 @@ gconf_server_get_default_sources(void) if (addresses == NULL) { -#ifndef G_OS_WIN32 - const char *home = g_get_home_dir (); -#else - const char *home = _gconf_win32_get_home_dir (); -#endif + const char *configdir = g_get_user_config_dir (); - /* Try using the default address xml:readwrite:$(HOME)/.gconf */ - addresses = g_slist_append(addresses, g_strconcat("xml:readwrite:", home, "/.gconf", NULL)); + /* Try using the default address xml:readwrite:$(USERCONFIGDIR)/gconf */ + addresses = g_slist_append(addresses, g_strconcat("xml:readwrite:", configdir, "/gconf", NULL)); gconf_log(GCL_DEBUG, _("No configuration files found. Trying to use the default configuration source `%s'"), (char *)addresses->data); } |