The methods Shutdown and RequestShutdown in org.gnome.SessionManager do the same

Bug #931565 reported by hakaishi
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNOME Shell
New
Undecided
Unassigned
epoptes (Ubuntu)
New
Undecided
Unassigned
gnome-session (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've looked into the source of gnome-session-bin and noticed that the methods Shutdown and RequestShutdown of the org.gnome.SessionManager interface both start the shutdown-dialog. In the file org.gnome.SessionManager.xml it is clearly stated that RequestShutdown (line 319-325) should not start a Dialog while Shutdown (line 251-257) should.

It actually works normally when one uses Unity, but not with the gnome-shell.

I'm using Ubuntu 12.04, but this problem has been occuring since some time before 12.04. (I've noticed it because I'm the programmer of qshutdown)
The difference to the System(s) before 12.04 was that the shutdown-dialog was not called in both cases.

You can test this with "dbus-send --session --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.RequestShutdown". The system should shutdown without popping up a dialog (prompt).

Just to mention another problem coming with this: When setting (lets say with the dconf-editor) at org->gnome->gnome-session (also org.gnome.SessionManager) logout-prompt to false, no dialogs are shown at all (with either Method) and clicking on Shutdown in the indicator menu also just shuts down instead of showing the option(s) to reboot etc.

Tags: shutdown
Revision history for this message
hakaishi (hakaishi) wrote :
Revision history for this message
hakaishi (hakaishi) wrote :

I think this bug effects everyone, but nobody might notice it because every average user uses only the GUI and dialogs to shutdown. Who would use the dbus-send command to shutdown/reboot the computer except of programmers?

hakaishi (hakaishi)
description: updated
hakaishi (hakaishi)
description: updated
hakaishi (hakaishi)
description: updated
description: updated
hakaishi (hakaishi)
tags: added: shutdown
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-session (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.