Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to make a .desktop file for my Python script, but so far the only thing i have is a clickable icon on my desktop! It does nothing when I click it, so im guessing there is something wrong with the execution :)

The desktop file:

[Desktop Entry]
Version=1.0
Type=Python
Exec=/home/user/MyDocs/Python/EasySteer/Main.py
Name=EasySteer
Icon=steering_wheel
X-Icon-Path=/usr/share/icons

and I also tried:

[Desktop Entry]
Version=1.0
Type=Application
Exec=/usr/bin/xterm "python /home/user/MyDocs/Python/EasySteer/Main.py"
Name=EasySteer
Icon=steering_wheel
X-Icon-Path=/usr/share/icons

But nothing works :D if it matters this is for my Nokia N900 mobile phone that runs Maemo linux, but I think the basics are the same.

share|improve this question
    
Make sure your script is executable (chmod u+x) and that the first line of the script is a "shebang line" like #!/usr/bin/env python –  fmark Jan 17 '11 at 6:00

1 Answer 1

up vote 5 down vote accepted
[Desktop Entry]
Name=EasySteer
Icon=steering_wheel
Type=Application
Exec=/home/user/MyDocs/Python/EasySteer/Main.py
Terminal=true

Adding Terminal=true should cause the default terminal emulator to be opened.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.