Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-03-25 09:09:28

webwolf
Member
Registered: 2015-03-25
Posts: 1

Custom launcher issues

Hey guys,

I'm relatively new to XFCE, I've trawled the web looking for a solution to this, but I'm at a loss:

I've created a custom launcher in the menu which points to a Python script. It runs fine from the main launcher menu.

--Fixed--
1: If I run the launcher from the right click desktop menu, the terminal window spawns and closes within a second

2: If I add a --fullscreen switch to the .desktop file, and run the launcher from the main launcher menu the terminal spawns and closes within a second. (And it still doesn't run from the desktop right click menu).

Can anyone point in the right direction for figuring out why the terminal window isn't staying open ?

-- .desktop file --

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=ThreatMon
Name[en_GB]=ThreatMon
Comment=Internet Threat Monitor
Comment[en_GB]=SANS Internet Threat Monitor Python script
GenericName=Python Script
GenericName[en_GB]=Python Script
Exec=python /home/webwolf/Python/tmon-master/tmon.py
Path=/home/webwolf/Python/tmon-master/
Icon=/usr/share/pixmaps/python.xpm
StartupNotify=true
Terminal=true
MimeType=text/plain
Categories=Python

Exec=xfce4-terminal --command=/home/webwolf/Python/tmon-master/tmon.py -H --fullscreen
the -H is hanging the Terminal window so I can see the error.

It's still not running from the desktop right click menu with file path error.

-- Issue --

Running the command from the Desktop right click menu with "ls" is displaying the contents of the Desktop directory, as opposed to the set 'Path' directory.
Running the command from the main menu with "ls" displays the content of the set 'Path' directory.

Is this a bug or by design ??

Last edited by webwolf (2015-03-25 09:51:20)

Offline

#2 2015-03-25 12:21:20

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Custom launcher issues

you could try something like

exo-open --working-directory "<path>" --launch TerminalEmulator <options>

another possibility would to change the path at the top of your script eg: something like:

os.chdir("<path>")

Offline

Board footer

Powered by FluxBB