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.