On Tue, 4 Oct 2011 13:29:04 +0000 (UTC) Camaleón <noela...@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\n") > > 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: rich...@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-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20111004161346.4812f...@bigun.g8jvm.com