void-packages/srcpkgs/ConsoleKit/patches/reorder-initialization.patch
Juan RP 88ab886ebc ConsoleKit: add patch to fix initialization through dbus, from
Archlinux. Bump revision.

--HG--
extra : convert_revision : 099869362b9a2931bd106ee438c8a416068074ba
2010-02-22 15:50:33 +01:00

41 lines
1.1 KiB
Diff

Fixes initialization with hal-0.5.14 through dbus, from Archlinux.
--- src/main.c.reorder-initialization 2009-12-18 14:51:38.821212946 -0500
+++ src/main.c 2009-12-18 14:52:19.246211176 -0500
@@ -294,11 +294,19 @@ main (int argc,
setup_debug_log (debug);
+ g_debug ("initializing console-kit-daemon %s", VERSION);
+
connection = get_system_bus ();
if (connection == NULL) {
goto out;
}
+ manager = ck_manager_new ();
+
+ if (manager == NULL) {
+ goto out;
+ }
+
bus_proxy = get_bus_proxy (connection);
if (bus_proxy == NULL) {
g_warning ("Could not construct bus_proxy object; bailing out");
@@ -310,16 +318,8 @@ main (int argc,
goto out;
}
- g_debug ("initializing console-kit-daemon %s", VERSION);
-
create_pid_file ();
- manager = ck_manager_new ();
-
- if (manager == NULL) {
- goto out;
- }
-
loop = g_main_loop_new (NULL, FALSE);
g_signal_connect (bus_proxy,