Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
1  
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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .