[Goodies-commits] r7374 - xfce4-power-manager/tags/0.8.0RC2/src
Ali Abdallah
aliov at xfce.org
Tue May 19 23:29:59 CEST 2009
Author: aliov
Date: 2009-05-19 21:29:59 +0000 (Tue, 19 May 2009)
New Revision: 7374
Modified:
xfce4-power-manager/tags/0.8.0RC2/src/xfpm-main.c
Log:
Daemonize before getting DBus system connection
Modified: xfce4-power-manager/tags/0.8.0RC2/src/xfpm-main.c
===================================================================
--- xfce4-power-manager/tags/0.8.0RC2/src/xfpm-main.c 2009-05-19 20:27:50 UTC (rev 7373)
+++ xfce4-power-manager/tags/0.8.0RC2/src/xfpm-main.c 2009-05-19 21:29:59 UTC (rev 7374)
@@ -102,11 +102,6 @@
g_error_free(error);
}
- if ( no_daemon == FALSE && daemon(0,0) )
- {
- g_critical ("Could not daemonize");
- }
-
xfpm_manager_start (manager);
gtk_main ();
@@ -177,8 +172,13 @@
dbus_g_thread_init ();
+ if ( no_daemon == FALSE && daemon(0,0) )
+ {
+ g_critical ("Could not daemonize");
+ }
+
bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
-
+
if ( error )
{
gchar *message = g_strdup(_("Unable to get connection to the message bus session"));
More information about the Goodies-commits
mailing list