LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Running a command from a launcher (on gnome desktop) (http://www.linuxquestions.org/questions/linux-newbie-8/running-a-command-from-a-launcher-on-gnome-desktop-607327/)

Virtuality 12-17-2007 07:36 AM

Running a command from a launcher (on gnome desktop)
 
Hi,

I want to right click the desktop and click "Create Launcher..."

And put the command "/usr/src/ventriloctrl-0.3/runctrl.sh" in it so it executes that as from a terminal.

Clicking "run in terminal" and simply entering the above line just makes a terminal flash for a second and go away :(

Oh and I also want the command to be run as root :X (of course I will enter my password manually!)

rakeyry 12-17-2007 08:32 AM

In the command settings in the "Create a Launcher" menu, add an extra parameter to set the output of the command to go to a file ( like add ">> ~/.error.txt" to the end of the command), or you can add a "&" to the end of the command to make the terminal stay open.

Either way, I suspect that the error has to do with you not being root, if this is the case, add sudo to the beginning of the command. If this is not the case, then post the output of the command on here!

Hope this helps =)


All times are GMT -5. The time now is 05:29 PM.