GNOME Bugzilla – Bug 662098
Shutdown non-interactively
Last modified: 2012-03-16 10:43:32 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
that patch is included in 3.2.1
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?
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
(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.