Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I run gshutdown as root. In 11.04 , I modified the comand line via the main menu, by adding, su-to-root -X -c /usr/bin before the command line. I can't find an equivalent to 'main menu' in Oneric.

share|improve this question
add comment

1 Answer

  1. Open the Dash and find GShutdown. Drag and Drop it from the Dash to your Home folder.

  2. Now open a terminal and run the following command to edit the launcher:

    gedit gshutdown.desktop
    
  3. Change the text after Exec= to your new command:

    enter image description here

  4. Save the file and close it. Now copy the launcher to your local application folder:

    cp gshutdown.desktop ~/.local/share/applications/
    
  5. If you have GShutdown on your Launcher, remove it and then launch GShutdown from the Dash. You should be prompted for your password as you would expect.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.