We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-07-04 22:44:18 +0300

Create desktop icon for python script

I have written a python script to perform a certain action.

This script uses command line interaction.

If I use this script from fingerterm, it works like charm.

Problem:

When I tried creating a desktop icon for it ( added a .desktop entry ), it shows the icon on the desktop, when clicked it shows the working circle, but my fingerterm does not show or my application does not run.

this is the .desktop entry:

[Desktop Entry]
Type=Application
Terminal=true
Name=AppName
Exec=fingerterm -e "python /path/to/script/script.py"
Icon=/path/to/icon/icon.png

I am sure I missed something somewhere...

Could it be because the script is stored on external memory card ?

Thanks..

Create desktop icon for python script

I have written a python script to perform a certain action.

This script uses command line interaction.

If I use this script from fingerterm, it works like charm.

Problem:

When I tried creating a desktop icon for it ( added a .desktop entry ), it shows the icon on the desktop, when clicked it shows the working circle, but my fingerterm does not show or my application does not run.

this is the .desktop entry:

[Desktop Entry]
Type=Application
Terminal=true
Name=AppName
Exec=fingerterm -e "python /path/to/script/script.py"
Icon=/path/to/icon/icon.png

I am sure I missed something somewhere...

Could it be because the script is stored on external memory card ?

Thanks..

UPDATE

Very Strangely, I read somwhere that I can diagnose the .desktop entry as below:

awk -F= '/Exec=/{system($2)}' your_desktop_file.desktop

When I tried this in terminal, Jolla opened another terminal and my script was running in the new terminal...