Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > d90060d8d7ff57300bca4d95f97abbb7 > files > 8

GConf2-3.2.3-4.fc16.src.rpm

From 81bf551afedd06b22eb55c00e95b344f89efd228 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Tue, 6 Mar 2012 14:39:06 -0500
Subject: [PATCH] dbus: fix shutdown

gconftool-2 wasn't properly shutting down gconfd, because
it was trying to do it before connecting to the daemon.

This commit makes sure that we always first try to connect to
the daemon before asking it to shutdown.
---
 gconf/gconf-dbus.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/gconf/gconf-dbus.c b/gconf/gconf-dbus.c
index 442a94b..f167fc5 100644
--- a/gconf/gconf-dbus.c
+++ b/gconf/gconf-dbus.c
@@ -2483,7 +2483,13 @@ gconf_shutdown_daemon (GError** err)
 {
   DBusMessage *message;
 
-  /* Don't want to spawn it if it's already down */
+  /* If we haven't reached out to it yet,
+   * reach out now.
+   */
+  if (global_conn == NULL)
+    gconf_ping_daemon();
+
+  /* But we don't want to spawn it if it's already down */
   if (global_conn == NULL || !service_running)
     return;
   
-- 
1.7.9.1