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.

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
add comment

1 Answer 1

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
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.