Applications Menu items: how to make them run a script ?

Vincent Trouilliez vincent.trouilliez at modulonet.fr
Sun Jul 20 13:51:37 UTC 2008


On Sun, 20 Jul 2008 08:05:17 -0500
"Mumia W." <paduille.4062.mumia.w+nospam at earthlink.net> wrote:

> Try running the important parts of the script from within a subshell 
> that redirects stdout and stderr:
> 
> #!/bin/sh
> (
> jhat &
> xplane &
> pkill jhat
> ) > /tmp/logfile 2>&1


Hi Mumia,

I tried that, and all it shows is what the script does, not what the
Applications Menu does.

As I said, the script works fine (here it is):

*******
#! /bin/sh
./jhat /dev/input/js0 4 5 &
./X-Plane-i686
killall jhat
*******

when I start it from the command line, it works as expected, no
problem here. The problem isn't the script from what I can see, but more
in the Applications menu applet, which fails to run a
valid/working script, and I don't know how to get debugging info from
the GUI app that is the Application Menu. If I knew the name of the
executable of the applet that handles the Application menu, I guess I
could try removing it from the panel and restarting it, from the
command line this time, hoping it would throw some messages in the
terminal, to explain why it refuses to run my script. But I don't know
how to find out what is the program name of a given applet. The panel
itself is "gnome-panel" IIRC, but the Application menu itself.... I
have no idea ! :-/


--
Vince




More information about the ubuntu-users mailing list