Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release-src > by-pkgid > 55343ca982571b93b67d013f8938c0f9 > files > 1

consolekit-0.4.1-3mdv2010.1.src.rpm

diff -p -up ConsoleKit-0.4.1/src/main.c.acquire_later ConsoleKit-0.4.1/src/main.c
--- ConsoleKit-0.4.1/src/main.c.acquire_later	2009-12-16 11:31:13.000000000 +0100
+++ ConsoleKit-0.4.1/src/main.c	2009-12-16 12:52:09.000000000 +0100
@@ -305,11 +305,6 @@ main (int    argc,
                 goto out;
         }
 
-        if (! acquire_name_on_proxy (bus_proxy) ) {
-                g_warning ("Could not acquire name; bailing out");
-                goto out;
-        }
-
         g_debug ("initializing console-kit-daemon %s", VERSION);
 
         create_pid_file ();
@@ -320,6 +315,11 @@ main (int    argc,
                 goto out;
         }
 
+        if (! acquire_name_on_proxy (bus_proxy) ) {
+                g_warning ("Could not acquire name; bailing out");
+                goto out;
+        }
+
         loop = g_main_loop_new (NULL, FALSE);
 
         g_signal_connect (bus_proxy,