How to Turn Off the Shutdown/Restart Confirmation Dialog Box in Ubuntu 14.04

how-to-turn-off-the-shutdownrestart-confirmation-dialog-box-in-ubuntu-1404 photo 1

By default, Ubuntu is configured to always prompt you with a confirmation dialog box with two choices when you want to shut down or restart your computer. The same thing happens when you log out of your account or lock your session.

The confirmation dialog box for restart/shutdown is a safeguard meant to prevent you from accidentally shutting down or restarting your computer. If you’re in a hurry, however, you may tell Ubuntu to shut down and walk away, forgetting about the confirmation dialog box and leaving the computer on. If you would rather not be bothered with the confirmation dialog box when shutting down or restarting your computer, you can turn this dialog box off.

NOTE: Turning off the Shut Down/Restart confirmation dialog box also turns off the Log Out/Lock confirmation dialog box.

Notice that when the confirmation dialog box is enabled, there is no Restart option on the system menu. When you choose Shut Down, the Restart option is on the same confirmation dialog box.

how-to-turn-off-the-shutdownrestart-confirmation-dialog-box-in-ubuntu-1404 photo 2

To disable the Shut Down/Restart confirmation dialog box, press Ctrl + Alt + T to open a Terminal window. Type the following command at the prompt and press Enter.

gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true

Click the X button in the upper-left corner of the Terminal window to close it.

how-to-turn-off-the-shutdownrestart-confirmation-dialog-box-in-ubuntu-1404 photo 3

You do not need to log out or restart for this change to take effect. Notice that the Restart option is not available on the System menu. When you select Shut Down, Restart, Log Out, or Lock, the action now happens immediately without confirmation.

how-to-turn-off-the-shutdownrestart-confirmation-dialog-box-in-ubuntu-1404 photo 4

To turn on the confirmation dialog box again, open a Terminal window again, type the following command at the prompt and press Enter.

gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown false

how-to-turn-off-the-shutdownrestart-confirmation-dialog-box-in-ubuntu-1404 photo 5

Now, you can quickly shut down or restart your Ubuntu computer. However, be careful not to accidentally shut it down without intending to do so.

Article How to Turn Off the Shutdown/Restart Confirmation Dialog Box in Ubuntu 14.04 compiled by Original article here

More stories

Minecraft Guide: Creating Custom Minecraft Maps

Early on in the series we created our first Creative Mode and Survival Mode maps, but then we dove headlong into learning about biomes, creatures, and many other facets of the Minecraft experience. Today we’re returning to the map. Let’s learn how to seed and generate awesome custom maps.

Minecraft Guide: Engineering with Redstone

If you want to get as advanced as possible in Minecraft, redstone is where it’s at. Doors that automatically open, switch-controlled lights, farms that harvest themselves – it’s all possible with redstone.

6 Ways to Free Up Space on a Chromebook

Reach your Chromebook’s storage limit and you’ll start seeing errors when downloading and creating files. This isn’t hard to do, as Chromebooks often come with only 16 GB of internal storage.

Is Bluetooth Faster than Wi-Fi?

If your devices have both Bluetooth and Wi-Fi capability built in, then which one is actually faster? Today’s SuperUser Q&A post has the answer to a curious reader’s question.