Applications Menu items: how to make them run a script ?
Vincent Trouilliez
vincent.trouilliez at modulonet.fr
Sun Jul 20 16:12:44 UTC 2008
On Sun, 20 Jul 2008 16:17:47 +0100
Andy <stude.list at googlemail.com> wrote:
> Vincent Trouilliez wrote:
> > *******
> > #! /bin/sh
> > ./jhat /dev/input/js0 4 5 &
> > ./X-Plane-i686
> > killall jhat
> > *******
>
> There's your problem. Your using ./jhat and ./X-Plane-I686
> The script is looking in the working directory which is fine if you have
> cd'ed to the correct directory before invoking it but it won't work from
> a menu item because the working directory isn't right.
>
> if they are not in the path change it to:
>
> > #! /bin/sh
> > cd /path/tp/xplane/dir
Hmmm, newbie mistake then, I feel ashamed ! ;-)
Thanks Andy, problem solved :o)
--
Vince, going to hide in the corner...
More information about the ubuntu-users
mailing list