[Xfce-bugs] [Bug 12639] Switch User via Logout Dialog button - Out of service

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Jun 16 07:22:43 CEST 2016


https://bugzilla.xfce.org/show_bug.cgi?id=12639

--- Comment #3 from poma <pomidorabelisima at gmail.com> ---

Log out - without logout dialog:
xfce4-session-logout [-l, --logout]

Switch User/To Greeter / Lock - with overdue logout dialog:
xfce4-session-logout [, -f, --fast]

thus at least works somewhat :)

---
 xfce4-session/xfsm-shutdown.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/xfce4-session/xfsm-shutdown.c b/xfce4-session/xfsm-shutdown.c
index e015323..c05e478 100644
--- a/xfce4-session/xfsm-shutdown.c
+++ b/xfce4-session/xfsm-shutdown.c
@@ -536,6 +536,18 @@ xfsm_shutdown_can_switch_user (XfsmShutdown  *shutdown,
                                                  NULL,
                                                  error);

+  if (display_proxy != NULL)
+    {
+      g_dbus_proxy_call_sync (display_proxy,
+                              "SwitchToGreeter",
+                              g_variant_new ("()"),
+                              G_DBUS_CALL_FLAGS_NONE,
+                              -1,
+                              NULL,
+                              NULL);
+      g_object_unref (display_proxy);
+    }
+
   if (display_proxy == NULL)
     {
       xfsm_verbose ("display proxy returned NULL\n");
--

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list