Of course, this feature is there to save you from the unnecessary shutting down and restarting of your Ubuntu machine. But if you have been using Ubuntu for a long time, then accidentally pressing the Shutdown button is pretty rare. That said, apart from being useful, this feature is kind of annoying, as sometimes we may forget to confirm our action due to things like ignorance or workload which in turn leads to unnecessary power consumption. Here is an easy way to turn off the Shutdown and Restart confirmation dialog box in Ubuntu 14.04. Note:

  1. Even though we are showing this in Ubuntu 14.04, this tip should work in other recent versions too.
  2. Turning off the shutdown and restart confirmation dialog box will also turn off the confirmation dialog box for logging out and locking your Ubuntu machine.

Turn Off Shutdown and Restart Confirmation Dialog Box

Before doing anything, if you observe the options under the power button, you will find that there is no Restart option by default. This is because the Restart option is found in the confirmation dialog box. After you disable the confirmation dialog box, the restart option will appear in the list of options.

In order to turn off the Shutdown and Restart confirmation dialog box in Ubuntu, we need to change an indicator-session setting. To do that, open your Ubuntu terminal and type:

Once you press the Enter button, the confirmation dialog box will be disabled immediately. There is no need for you to restart or log off. Once you are done executing the command, you can safely close the terminal. As said before, if you press the power button in the top panel, you will see that the Ubuntu has automatically added a Restart option so you can quickly restart whenever you want.

In the future, if you ever want to re-enable the Shutdown and Restart confirmation dialog box, just replace the value “true” with “false” in the above command. Once replaced, the command will look like this:

Once you have executed the above command, Ubuntu immediately enables the shutdown and restart confirmation dialog box. There is no restart or log off required to see the changes. That’s all there is to do, and it is that easy to turn off and on the shutdown confirmation dialog box in Ubuntu 14.04. Do comment below if you face any problems while following this tutorial and do share your thoughts on how good this Ubuntu feature is.