After I updated to 13.04, Ubuntu immediately shuts down without confirmation when I press the power button. Also, it doesn't ask for confirmation if I select an otion from the top-right gear menu. I tried setting the flag org.gnome.gnome-session.logout-prompt to true in dconf-editor and I set the power button action to "Interactive" in Tweak Tool.
2 Answers
I finally found the solution!
Apparently the setting of /org/gnome/gnome-session/logout-prompt
is ignored in newer Ubuntu versions, the right key was /apps/indicator-session/suppress-logout-restart-shutdown
.
So to fix this, do dconf write /apps/indicator-session/suppress-logout-restart-shutdown false
in terminal. It should take effect immediately without restart.
It seems that sometimes this value is set to „true“ by upgrade or third party applications.
In ubuntu 13.04 i find this is working, so please open a terminal and type or better copy and paste the row below then press enter:
dconf write /org/gnome/gnome-session/logout-prompt false
-
Not only is this question already solved, but you suggested tampering with the exact setting that was found out to not work anymore in 13.04 and if it would, your suggestion would do the exact opposite of what I wanted. Aug 25, 2013 at 18:36
sudo shutdown -r
to "restart" given that there's no direct menu option for it.