! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unable to shutdown via dbus interface
Status:
RESOLVED: WONTFIX
Product:
Xfce4-session
Component:
General

Comments

Description superm1 2009-12-14 06:16:10 CET
When I try to shutdown or reboot out using the dbus interface, I'm just brought back to the login screen.

If I try to use the Logout item in my Applications menu on the panel, things work properly.

Here's the commands i'm using for shutdown and reboot:

Shutdown:
dbus-send --session --type=method_call --print-reply --dest=org.xfce.SessionManager /org/xfce/SessionManager org.xfce.Session.Manager.Shutdown uint32:2 boolean:false

Reboot:
dbus-send --session --type=method_call --print-reply --dest=org.xfce.SessionManager /org/xfce/SessionManager org.xfce.Session.Manager.Shutdown uint32:3 boolean:false
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-12-15 03:19:14 CET
Even though it's not marked as such, please consider the dbus interface private.  It'll probably be completely different for 4.8.
Comment 2 superm1 2009-12-15 04:53:15 CET
Why is it considered private?  For both Gnome and KDE, there are interfaces available that are considered public and "work".  This allows for nifty things like adding a third party applet such as indicator-applet in gnome which can manage your IM presence and shutdown/reboot/logout/lock the screen all in one place.
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-12-15 05:58:15 CET
Because it's not stable.  I'm not happy with the interface API, and I make no guarantees that it will continue to work in the future (or even in the present).

Bug #6081

Reported by:
superm1
Reported on: 2009-12-14
Last modified on: 2009-12-15

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information