Unfortunately this is the default power button behaviour.

Even though we have

  Settings > Power > When the Power Button is Pressed = Power Off

to gnome-shell "Power Off" just means to show the dialog.

This is confusing, and something I have complained about myself. But if
you wait 60 seconds without selecting anything in the dialog then it
will eventually power off. Just as you asked.

If you want an faster system power off then try:  sudo poweroff

The Settings GUI option of "Power Off" is actually just an illusion
presented by gnome-control-center. The actual list of options supported
internally is:

  <enum id="org.gnome.settings-daemon.GsdPowerButtonActionType">
    <value nick="nothing" value="0"/>
    <value nick="suspend" value="1"/>
    <value nick="hibernate" value="2"/>
    <value nick="interactive" value="3"/>
  </enum>

So there is no "Power Off" option in gnome-shell in reality. What you
are seeing is the "interactive" option.

For gnome-session-quit to offer the "--power-off" parameter sounds like
a promise it can't keep. Gnome only supports the four options listed
above.

Similarly,

  gnome-session-quit --power-off --no-prompt

still prompts the user :P


** Tags added: bionic disco

** Changed in: gnome-session (Ubuntu)
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1819920

Title:
  gnome-session-quit --power-off option ignored

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1819920/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to