[Xfce4-commits] <xfce4-session:master> Remove remaining code to shutdown gconf.

Nick Schermer noreply at xfce.org
Mon Apr 23 18:00:03 CEST 2012


Updating branch refs/heads/master
         to a6f4e2ab2ec0cba9fb00254cd689df9d67678c1a (commit)
       from 98999673a7068c673b9881b565a01ec20566754d (commit)

commit a6f4e2ab2ec0cba9fb00254cd689df9d67678c1a
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Apr 23 17:59:14 2012 +0200

    Remove remaining code to shutdown gconf.

 xfce4-session/xfsm-compat-gnome.c |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/xfce4-session/xfsm-compat-gnome.c b/xfce4-session/xfsm-compat-gnome.c
index 386470f..b5b4a99 100644
--- a/xfce4-session/xfsm-compat-gnome.c
+++ b/xfce4-session/xfsm-compat-gnome.c
@@ -84,11 +84,12 @@ child_setup (gpointer user_data)
   for (fd = 3; fd < open_max; fd++)
     {
       if (fd != keyring_lifetime_pipe[0])
-      fcntl (fd, F_SETFD, FD_CLOEXEC);
+        fcntl (fd, F_SETFD, FD_CLOEXEC);
     }
 
   fd_str = g_strdup_printf ("%d", keyring_lifetime_pipe[0]);
   g_setenv ("GNOME_KEYRING_LIFETIME_FD", fd_str, TRUE);
+  g_free (fd_str);
 }
 
 
@@ -253,29 +254,12 @@ xfsm_compat_gnome_startup (XfsmSplashScreen *splash)
 void
 xfsm_compat_gnome_shutdown (void)
 {
-  GError *error = NULL;
-  gint    status;
-
   if (G_UNLIKELY (!gnome_compat_started))
     return;
 
   /* shutdown the keyring daemon */
   gnome_keyring_daemon_shutdown ();
 
-  /* shutdown the GConf daemon */
-  if (!g_spawn_command_line_sync ("gconftool-2 --shutdown", NULL,
-                                  NULL, &status, &error))
-    {
-      g_warning ("Failed to shutdown the GConf daemon on logout: %s",
-                 error->message);
-      g_error_free (error);
-    }
-  else if (status != 0)
-    {
-      g_warning ("Failed to shutdown the GConf daemon on logout: "
-                 "gconftool-2 returned status %d", status);
-    }
-
   xfsm_compat_gnome_smproxy_shutdown ();
 
   gnome_compat_started = FALSE;


More information about the Xfce4-commits mailing list