[gconf] daemon: store saved_state in daemon dir not ~/.gconfd



commit ea6894303f7ebadb98bf4bf70a79c5bf6ef7cb90
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jun 10 11:25:55 2011 -0400

    daemon: store saved_state in daemon dir not ~/.gconfd
    
    The daemon dir isn't always ~/.gconfd so we shouldn't hard
    code it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=652289

 gconf/gconfd.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gconf/gconfd.c b/gconf/gconfd.c
index bc62af4..68da496 100644
--- a/gconf/gconfd.c
+++ b/gconf/gconfd.c
@@ -1665,13 +1665,7 @@ gconfd_check_in_shutdown (CORBA_Environment *ev)
 static void
 get_log_names (gchar **logdir, gchar **logfile)
 {
-#ifndef G_OS_WIN32
-      const char *home = g_get_home_dir ();
-#else
-      const char *home = _gconf_win32_get_home_dir ();
-#endif
-
-  *logdir = g_build_filename (home, ".gconfd", NULL);
+  *logdir = gconf_get_daemon_dir ();
   *logfile = g_build_filename (*logdir, "saved_state", NULL);
 }
 



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