Home > linux tips, ubuntu tweaks > disable shutdown and restart confirmation dialogs in ubuntu lucid

disable shutdown and restart confirmation dialogs in ubuntu lucid

In ubuntu versions before lucid when the shutdown or restart button is pressed there will be a confirmation dialog asking to confirm your action and if no action is taken in 60 seconds the system will automatically confirm your action. But in lucid the auto confirmation is removed and you have to manually confirm your action no matter how long it is. However if you dont like your system asking you to confirm your action then there is a simple way to remove the confirmation dialog.

Open Gconf-editor by pressing Alt+F2 in desktop and type gconf-editor in the “Run application” dialog and press enter, the gconf-editor window will appear. In the left panel of the editor window navigate to:

/ -> apps -> indicator-session

In the right pane enable the key suppress_logout_restart_shutdown and close the editor. Now when the shutdown or restart or logout button is pressed there will be no confirmation dialog. If you change your mind and need the confirmation dialog back just uncheck the key value.To know more about the gconf-editor visit this link.

Alternatively you can disable it by typing the typing the following command in the terminal:

gconftool-2 –type bool –set /apps/indicator-session/suppress_logout_restart_shutdown true

To re-enable it just change the key value in the end of the command to false.

Note: double hyphen is used before type and set in the above command.

Advertisements
  1. June 13, 2010 at 9:40 pm

    blulin, thanks for great post. Unfortunately it does not seem to be working on my Lucid install – still receiving the confirmation pop up. Bug perhaps?

  2. June 13, 2010 at 10:03 pm

    It definitely works and there is no bug.Check that you are choosing the correct key if you use gconf-editor or if you use the commandline method,if you copy and paste the command from here double hyphen will not appear correctly in terminal replace the hyphens manually.

  3. June 14, 2010 at 2:03 am

    Thank you. Yes, the key is correct. I’ll keep looking for a solution and post when if and when find one.

  4. June 14, 2010 at 2:30 am

    I looked back through my bash history and noticed I had prefaced the string with sudo, which of course resulted in the command not reconfiguring my session. Ran the command again non-sudo and it worked just fine.

    Thanks again for this very helpful post.

  5. June 21, 2010 at 12:42 pm

    Thanks heaps – was bugging me. Must start remembering to look for configuration in gconf-editor seems to be the way ubuntu is going.

  6. Mike S
    July 16, 2010 at 9:16 am

    Thanks for the clear instructions. This editor gives us access to lots of great features. This is what makes linux fun for me, being about to configure it to be just the way I want it. Windows is cartoonish by comparison, adding a sometimes overdone gui between me and the commands I want to access. BTW I used $ sudo gconf-editor
    since Alt – F2 didn’t work.

  1. June 8, 2010 at 5:18 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: