http://bugs.gentoo.org/333349 http://bugs.freedesktop.org/show_bug.cgi?id=25744 --- src/main.c +++ src/main.c @@ -331,11 +331,19 @@ 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"); @@ -347,18 +355,10 @@ goto out; } - g_debug ("initializing console-kit-daemon %s", VERSION); - delete_console_tags (); create_pid_file (); - manager = ck_manager_new (); - - if (manager == NULL) { - goto out; - } - loop = g_main_loop_new (NULL, FALSE); g_signal_connect (bus_proxy,