n00b gksudo problem
MR ZenWiz
mrzenwiz at gmail.com
Fri Feb 18 19:09:43 UTC 2011
On Fri, Feb 18, 2011 at 10:57 AM, Verde Denim <tdldev at gmail.com> wrote:
> 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
>
Is this the entire text of the file? Please confirm or post the
contents with delineaters so we can see what is in the file and what
is just the message.
> I added a menuitem that has -
> gksudo /usr/local/Jdec/Jdec-UI.sh
>
Unless I completely misunderstand gksudo, that will only work properly
for actual X applications.
What you're doing is attempting to launch a command line shell script
in a graphical shell - YMMV, but I would not expect this to work.
> 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...
>
Have you tried creating a launcher that just executes the command in
the script, preceded by gksudo?
Seems like that should work.
More information about the ubuntu-users
mailing list