VectorLinux

The nuts and bolts => X-Rated => Topic started by: rhauff on August 28, 2007, 06:36:36 am

Title: Xfce launcher isn't working--SOLVED!
Post by: rhauff on August 28, 2007, 06:36:36 am
I'm running VL5.8 with Xfce 4.4.  I have a desktop lanucher configured to run a python script for the Edna web server.  I have it checked to run in a terminal.
Here is the command:
python /opt/edna-0.6/edna.py -c /opt/edna-0.6/edna.conf

When I double-click it nothing happens.  If I past the command into an terminal window, it runs just fine.
Any ideas?

Thanks!

BTW, I have check the Xfce website documentation & forum and, as usual, found nothing.
Title: Re: Xfce launcher isn't working
Post by: M0E-lnx on August 28, 2007, 06:42:13 am
Try using absolute paths. ie
Code: [Select]
/usr/bin/python /opt/edna-0.6/enda.py -c /opt/endna-0.6/edna.conf
Title: Re: Xfce launcher isn't working
Post by: rhauff on August 28, 2007, 07:40:25 am
No effect.  I tried also /usr/bin/python&  in case the session was closing itself, though I probably didn't implement this correctly.
Title: Re: Xfce launcher isn't working
Post by: M0E-lnx on August 28, 2007, 07:48:26 am
dirty way of doing it would be to write a script, and then create your launcher to run that script instead

Sample script
Code: [Select]
#!/bin/bash
/usr/bin/python /opt/edna-0.6/edna.py -c /opt/edna-0.6/edna.conf &


Save it as ~/edna-script

Then set it executable (+x) then create your launcher to run this script instead.

I think the "Command" field in the launcher editor can't really accept arguments. It assumes you'll just run something like "firefox" or "Terminal"

and not "python <file.py> -c <config_file.conf>


Title: Re: Xfce launcher isn't working
Post by: lagagnon on August 28, 2007, 08:15:54 am
Or try:

xfrun /usr/bin/python /opt/edna-0.6/enda.py -c /opt/endna-0.6/edna.conf
Title: Re: Xfce launcher isn't working
Post by: rhauff on August 28, 2007, 08:26:54 am
Thanks much for the help.
MOE-lnx, I tried that also, the only result was that it would flash a blank xterm window for a split second, but didn't run the script.

UPDATE:  After De-selecting "Run in terminal", it works!
Title: Re: Xfce launcher isn't working
Post by: rhauff on August 28, 2007, 08:31:04 am
Lagagnon,

Your solution works nicely also, I also had to de-select "Run in terminal" for this.  Thanks for the help, it's nice to finally have this working!  We've been having lots of power outages here in Minnesota, and the UPS died overnight, so I've been restarting the system more than usual.  Normally it's up for months at a time!!

Roland