From 4002fa12d19bdabb676a66b131ec0d6201e84dc6 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Jan 20 2010 15:10:12 +0000 Subject: - Register object methods with dbus-glib before taking bus name (fix 545267) --- diff --git a/ConsoleKit.spec b/ConsoleKit.spec index 1be50b2..86b9bfe 100644 --- a/ConsoleKit.spec +++ b/ConsoleKit.spec @@ -6,7 +6,7 @@ Summary: System daemon for tracking users, sessions and seats Name: ConsoleKit Version: 0.4.1 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.freedesktop.org/wiki/Software/ConsoleKit @@ -175,6 +175,10 @@ fi %doc %{_datadir}/doc/%{name}-%{version}/spec/* %changelog +* Wed Jan 20 2010 Ray Strode 0.4.1-4 +- Register object methods with dbus-glib before taking bus name + (fix 545267) + * Tue Dec 15 2009 Matthias Clasen 0.4.1-3 - Don't daemonize when activated diff --git a/reorder-initialization.patch b/reorder-initialization.patch new file mode 100644 index 0000000..f65abd5 --- /dev/null +++ b/reorder-initialization.patch @@ -0,0 +1,40 @@ +diff -up ConsoleKit-0.4.1/src/main.c.reorder-initialization ConsoleKit-0.4.1/src/main.c +--- ConsoleKit-0.4.1/src/main.c.reorder-initialization 2009-12-18 14:51:38.821212946 -0500 ++++ ConsoleKit-0.4.1/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,