Ask Ubuntu Asked by user753441 on December 29, 2020
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
Correct answer by BeastOfCaerbannog on December 29, 2020
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.
Answered by vanadium on December 29, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP