n00b gksudo problem
Verde Denim
tdldev at gmail.com
Fri Feb 18 18:57:57 UTC 2011
I'm trying to run a shell script on my 10.04 box with this in it -
cd /usr/local/Jdec
exec java -cp .:jdec20.jar net.sf.jdec.ui.main.UILauncher
I added a menuitem that has -
gksudo /usr/local/Jdec/Jdec-UI.sh
When I run it from the gnome menu, I get no response
at the commandline I tried sudo /usr/local/Jdec/Jdec-UI.sh
after the prompt for the pw, the term window flashes and - nothing.
I altered the script to remove the 'exec' and this time the term window
stays open longer, but still - no joy.
I also tried to run the modified script (without the 'exec') from the gnome
menu with the same results.
I changed the type of the menu entry from 'application' to 'application in
terminal' with no differences.
I even tried putting the call to java on the properties line in the menu
item, but that produces errors saying that the child process cannot be
started.
The only way this runs is if I sudo, then cd to /usr/local/Jdec, then run
the shell script at the commandline.
I must be missing something...
Input is (as always) welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110218/c7c5db05/attachment.html>
More information about the ubuntu-users
mailing list