Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to execute XAMPP CONTROL PANEL via Gnome-Do. But after I typed the sudopassword for authentication nothing happened. The Laucher is located in /opt/lampp/share/xampp-control-panel and executes gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py properly. How can I do that with Gnome-Do?

share|improve this question

You should never use sudo to launch graphical applications. Use gksudo instead. If you want to shorten the command, then you can make a file such as this:

#!/bin/bash
gksudo some command

Place it somewhere you like, in /usr/bin, for instance and make it executable. Then you can just run filname (the name you gave the file) to run it. It will ask for your password and run the command as root.

share|improve this answer
    
Where does Gnome-do find the executable files? – quangtruong1985 Aug 2 '11 at 3:41
    
Better to put in ~/bin for a single user, or in /usr/local/bin if to be run from other users too. – enzotib Aug 2 '11 at 6:26
    
Thanks for your comment. I'll try it. – quangtruong1985 Aug 2 '11 at 6:32

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.