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,395
  • 55
  • 76
  • 81
Nirmik
  • 7,748
  • 16
  • 58
  • 88

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,610
  • 11
  • 38
  • 50