Hi
The launcher in the menu points to this script:-
################################################## ###########################
#! /bin/bash
#
# Shell script to start the WSJT SDR
# application #
#
#
################################################## ###########################
################################################## #########################
# Make sure jack is not already running
TMP=`ps -ef | grep jackd | grep -v grep | wc -l`
if [ ! $TMP == 0 ]; then
echo "jackd is already running. Stopping Jack daemon..."
killall jackd
fi
sleep 1
cd /home/richard/SDR/wsjt-rev2454/
python wsjt.py
>From the CLI it works fine from any location and fails to run when
started from the menu.
file permissions are :-
-rwxrwxrwx 1 richard richard 779 Oct
so anyone and their dog can run it, what have I missed ?, I done it many
time on other distros.
--
Best wishes / 73
Richard Bown
E-mail: richard@g8jvm.com
nil carborundum a illegitemis
################################################## ######################
Sent by Evolution 2.30.3 on Debian squeeze amd64 . Dual core AMD Athlon
5200
Ham Call:G8JVM
Maidenhead QRA: IO82SP38:LAT. 52 39.720':N LONG. 2 28.171 W (degs,mins )
QRV HF + VHF Microwave 23 cms:140W,13 cms:100W,6 cms:10W & 3 cms:5W
################################################## ######################
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1317561146.2345.39.camel@bigun.g8jvm.com">http://lists.debian.org/1317561146.2345.39.camel@bigun.g8jvm.com
10-02-2011, 01:35 PM
Raf Czlonka
launching apps from the menu
On Sun, Oct 02, 2011 at 02:12:26PM BST, Richard Bown wrote:
> sleep 1
> cd /home/richard/SDR/wsjt-rev2454/
> python wsjt.py
Drop the 'cd' and try:
python /home/richard/SDR/wsjt-rev2454/wsjt.py
If that doesn't help, define PATH in the script or use full path to the
binaries/scripts you're calling.
Regards,
--
Raf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111002133545.GA10403@linuxstuff.pl">http://lists.debian.org/20111002133545.GA10403@linuxstuff.pl
10-02-2011, 03:50 PM
Raf Czlonka
launching apps from the menu
On Sun, Oct 02, 2011 at 03:01:34PM BST, Richard Bown wrote:
> On Sun, 2011-10-02 at 14:35 +0100, Raf Czlonka wrote:
> > If that doesn't help, define PATH in the script or use full path to the
> > binaries/scripts you're calling.
[cut]
> The cd to that directory is due to it must start in its directory, as it
> reads several config files on start up.
In that case how bout defining the PATH?
P.S. Reply to the list, not to me directly.
Regards,
--
Raf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111002155048.GA16056@linuxstuff.pl">http://lists.debian.org/20111002155048.GA16056@linuxstuff.pl
10-02-2011, 04:32 PM
Richard Bown
launching apps from the menu
On Sun, 2011-10-02 at 16:50 +0100, Raf Czlonka wrote:
> On Sun, Oct 02, 2011 at 03:01:34PM BST, Richard Bown wrote:
> > On Sun, 2011-10-02 at 14:35 +0100, Raf Czlonka wrote:
> > > If that doesn't help, define PATH in the script or use full path to the
> > > binaries/scripts you're calling.
>
> [cut]
>
> > The cd to that directory is due to it must start in its directory, as it
> > reads several config files on start up.
>
> In that case how bout defining the PATH?
>
> P.S. Reply to the list, not to me directly.
>
> Regards,
Do you mean something like
WSJT=/home/richard/SDR/wsjt-re2454
then use $WSJT
I tried that and it threw it out as bad syntax
--
Best wishes / 73
Richard Bown
E-mail: richard@g8jvm.com
nil carborundum a illegitemis
################################################## ######################
Sent by Evolution 2.30.3 on Debian squeeze amd64 . Dual core AMD Athlon
5200
Ham Call:G8JVM
Maidenhead QRA: IO82SP38:LAT. 52 39.720':N LONG. 2 28.171 W (degs,mins )
QRV HF + VHF Microwave 23 cms:140W,13 cms:100W,6 cms:10W & 3 cms:5W
################################################## ######################
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1317573139.2345.65.camel@bigun.g8jvm.com">http://lists.debian.org/1317573139.2345.65.camel@bigun.g8jvm.com
10-03-2011, 10:38 PM
Raf Czlonka
launching apps from the menu
On Sun, Oct 02, 2011 at 05:32:19PM BST, Richard Bown wrote:
> Do you mean something like
> WSJT=/home/richard/SDR/wsjt-re2454
> then use $WSJT
No. You know what defining the PATH means, don't you?
First thing to do would be to swap the last line in the script from:
python wsjt.py
to:
echo $PATH > test
pwd >> test
Then run it from the menu again and check the content of the "test" file.
Regards,
--
Raf
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111003223800.GA17576@linuxstuff.pl">http://lists.debian.org/20111003223800.GA17576@linuxstuff.pl
10-04-2011, 01:29 PM
Camaleón
launching apps from the menu
On Sun, 02 Oct 2011 14:12:26 +0100, Richard Bown wrote:
> The launcher in the menu points to this script:-
(...)
> From the CLI it works fine from any location and fails to run when
> started from the menu.
It fails? Why do you think it fails?
I mean, does the python script launches a GUI based program, runs a
daemon/service in background or takes any visible action?
> file permissions are :-
> -rwxrwxrwx 1 richard richard 779 Oct
>
> so anyone and their dog can run it, what have I missed ?, I done it many
> time on other distros.
I don't see anything wrong with your script :-?
Let's see (simplified sample):
sm01@stt008:~/Desktop$ cat test.sh
#! /bin/bash
cd /home/sm01/Desktop
python test.py
sm01@stt008:~/Desktop$ cat test.py
#!/usr/bin/python
a = open("/home/sm01/Desktop/sample.txt", "w")
a.write("sampe text
")
After double-clicking on the launcher, the small python script is run and
the file (which was not present before running it) is created with the
right content which means the script executes successfully when called
from the launcher:
sm01@stt008:~/Desktop$ cat sample.txt
sampe text
Greetings,
--
Camaleón
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.10.04.13.29.04@gmail.com">http://lists.debian.org/pan.2011.10.04.13.29.04@gmail.com
10-04-2011, 03:13 PM
Richard
launching apps from the menu
On Tue, 4 Oct 2011 13:29:04 +0000 (UTC)
Camaleón <noelamac@gmail.com> wrote:
> On Sun, 02 Oct 2011 14:12:26 +0100, Richard Bown wrote:
>
> > The launcher in the menu points to this script:-
>
> (...)
>
> > From the CLI it works fine from any location and fails to run when
> > started from the menu.
>
> It fails? Why do you think it fails?
>
> I mean, does the python script launches a GUI based program, runs a
> daemon/service in background or takes any visible action?
>
> > file permissions are :-
> > -rwxrwxrwx 1 richard richard 779 Oct
> >
> > so anyone and their dog can run it, what have I missed ?, I done it many
> > time on other distros.
>
> I don't see anything wrong with your script :-?
>
> Let's see (simplified sample):
>
> sm01@stt008:~/Desktop$ cat test.sh
> #! /bin/bash
> cd /home/sm01/Desktop
> python test.py
>
> sm01@stt008:~/Desktop$ cat test.py
> #!/usr/bin/python
> a = open("/home/sm01/Desktop/sample.txt", "w")
> a.write("sampe text
")
>
> And the launcher file looks like:
>
> sm01@stt008:~/Desktop$ cat tessto.desktop
> [Desktop Entry]
> Version=1.0
> Encoding=UTF-8
> Name=tessto
> Type=Application
> Terminal=false
> Icon[es_ES]=gnome-panel-launcher
> Exec=/home/sm01/Desktop/test.sh
> Name[es_ES]=tessto
> Icon=gnome-panel-launcher
> GenericName[es_ES]=
>
> After double-clicking on the launcher, the small python script is run and
> the file (which was not present before running it) is created with the
> right content which means the script executes successfully when called
> from the launcher:
>
> sm01@stt008:~/Desktop$ cat sample.txt
> sampe text
>
> Greetings,
>
Thanks , that helps
--
Best wishes / 73
e-mail: richard@g8jvm.com
Richard Bown
nil carborundum a illegitemis
################################################## ################################
Ham Call G8JVM . OS Fedora FC15 x86_64 on a Dual core AMD Athlon 4400, 4 GB RAM
Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W ( degs mins )
QRV HF + VHF Microwave 23 cms:140W,13 cms:100W,6 cms:10W & 3 cms:5W
################################################## ################################
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111004161346.4812f606@bigun.g8jvm.com">http://lists.debian.org/20111004161346.4812f606@bigun.g8jvm.com