After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662098 - Shutdown non-interactively
Shutdown non-interactively
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: media-keys
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-18 14:55 UTC by Ole Ernst
Modified: 2012-03-16 10:43 UTC
See Also:
GNOME target: ---
GNOME version: 3.1/3.2



Description Ole Ernst 2011-10-18 14:55:02 UTC
Hi,

I want my system to shutdown, if I press the "button-power". So I configured org.gnome.settings-daemon.plugins.power button-power to shutdown via dconf-editor.
Since Gnome-3.2 the Shell crashes when I press the button with the following message:
media-keys-plugin:ERROR:gsd-media-keys-manager.c:1301:do_config_power_action: code should not be reached

Which seems to have been fixed in http://git.gnome.org/browse/gnome-settings-daemon/commit/?h=gnome-3-2&id=df730ed9372fb74a0785afcf18df8da27af81280
by removing the assert. Unfortunately it didn't make it in gnome3.2.

Referring to the patch in the next release I still won't get the desired option to shut my laptop down immediately, but will be presented with an interactive menu (which should be only done for GSD_POWER_ACTION_INTERACTIVE).

If remember correctly immediate shutdown did work in gnome3.0.

Cheers
Comment 1 Ionut Biru 2011-10-29 09:30:25 UTC
that patch is included in 3.2.1
Comment 2 Ole Ernst 2011-10-29 12:39:43 UTC
Well sort of, at least now I get the menu with the shutdown option highlighted. Still I'd prefer that it would shutdown immediately without a prompting menu.
Can I expect this to come or is this another deliberate design choice?
Comment 3 Bruno Guerreiro 2011-10-29 18:42:40 UTC
shutdown option should again make immediate shutdown when the power button is pressed.
Interactive option should be defaulted, and shutdown user defined, not all accidentally press the power button, mainly in most desktop and many laptops.
I want to my desktop shutdown immediately when power button is pressed not interactive.
By the way that patch is for make power button always interactive
Comment 4 Richard Hughes 2012-03-16 10:43:32 UTC
(In reply to comment #2)
> Well sort of, at least now I get the menu with the shutdown option highlighted.
> Still I'd prefer that it would shutdown immediately without a prompting menu.
> Can I expect this to come or is this another deliberate design choice?

This is a deliberate design choice. We've not got all the userspace bits in place to be able to shutdown straight away without potentially loosing work. Shutting down without confirmation is a very quick way to turn a mistake into a disaster.