3

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:

python pythonscript.py

Can it also be added in the launcher?

How can I do it?

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
Nirmik
  • 7,868

1 Answers1

3
X-Ayatana-Desktop-Shortcuts=python

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

[python Shortcut Group]
Name=Python
Exec=python /path/to/script/script.py
TargetEnvironment=Unity
Rahul Virpara
  • 11,720