[Xfce4-commits] <xfce4-session:master> Fix xfce4-session-logout --halt and --reboot (bug #5032).

Jérôme Guelfucci noreply at xfce.org
Thu Dec 30 09:18:01 CET 2010


Updating branch refs/heads/master
         to 5469150da6c22947ecc19a84b2eb169bb8b0e18f (commit)
       from 15712c507e837012c712f9c7b141afab69f28310 (commit)

commit 5469150da6c22947ecc19a84b2eb169bb8b0e18f
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Dec 30 09:13:57 2010 +0100

    Fix xfce4-session-logout --halt and --reboot (bug #5032).

 xfce4-session/shutdown.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/xfce4-session/shutdown.c b/xfce4-session/shutdown.c
index a32bdc7..6a97ef5 100644
--- a/xfce4-session/shutdown.c
+++ b/xfce4-session/shutdown.c
@@ -822,10 +822,7 @@ xfsm_shutdown(XfsmShutdownType type)
     return EXIT_SUCCESS;
 
   if (shutdown_helper == NULL)
-    {
-      g_warning ("No shutdown helper attached!");
-      return EXIT_FAILURE;
-    }
+    shutdown_helper = xfsm_shutdown_helper_new ();
 
   result = xfsm_shutdown_helper_send_command (shutdown_helper, type, &error);
   g_object_unref (shutdown_helper);



More information about the Xfce4-commits mailing list