10

How to disable the shutdown confirmation dialogues on Ubuntu 20.04?

4 Answers4

14

You can disable the shutdown and logout dialogs by running:

gsettings set org.gnome.SessionManager logout-prompt false

Note that with this setting your computer will be immediately shut down when you press Power Off..., so you won't be able to use Power Off... to reboot. You can, however, run reboot in a terminal to reboot your computer.

To revert the setting run:

gsettings set org.gnome.SessionManager logout-prompt true
3

For the last full updated version of Ubuntu 22.04.1, the way to disable logout prompt (or shutdown confirmation window) is:

  • install dconf editor

    sudo apt install dconf-editor

  • Navigate to:

    org.gnome.gnome-session > logout-prompt > disable

Hope this helps someone.

Rafa J
  • 39
0

The shutdown dialog confirmation is provided by the tool gnome-session-quit. The tool does not allow to disable the confirmation for shutdown or restart operations. So there is no easy way to disable the confirmation dialog when you shut down via the user menu, or the "Power off" launcher in the dash.

The terminal commands poweroff or shutdown are configured in Ubuntu 20.04 to be available by normal users. Thus, you could bind one of these commands to a shortcut key, or create a launcher to that command to obtain a quicker way for shutting down the system.

Once you do that, you will realize that you should make sure that shutting down the system is not too easily triggered as to avoid unintended shutdowns.

vanadium
  • 97,564
0

Alongside with installing bring submenu to normal menu extension - allowed to reduce 4 clicks to 2 clicks to poweroff machine - feels like sane amount of actions, much like in win/osx shells

also it making poweroff a last item, to avoid misclicks and being logged out all the time. sadly to admin, its an example of UI, made with perfectly bad UX sense in mind..

xakepp35
  • 325