Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have managed to add .sh files as launcher shortcuts. Now, I want to add a python script in the launcher as shortcut.

I want it to be executed like when it would get executed in the terminal when the following command is run:


Can it also be added in the launcher?

How can I do it?

share|improve this question
Umm...downvote?? – Nirmik May 28 '12 at 13:42
up vote 3 down vote accepted

don't forget to add above line if doesn't exists(if already exists then append name from [ ])

[python Shortcut Group]
Exec=python /path/to/script/
share|improve this answer
Where to add this? in a new .desktop file? – Nirmik May 28 '12 at 9:29
You can also add a bang line to the very top of your script to get rid of python call. A good bang line could be: #!/usr/bin/env python – jasmines May 28 '12 at 9:31
in existing one or you can create launcher having so many quick list. – virpara May 28 '12 at 9:33
@jasmines you are right. – virpara May 28 '12 at 9:34
@jasmines...Oh that workd amazingly..!! – Nirmik May 28 '12 at 12:33

Your Answer


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.