Search code examples
pythonubuntushortcut-file

How do I create a desktop shortcut with Python (Ubuntu)?


I was wondering how do I create a shortcut file on the desktop in Ubuntu (or any Linux Distro) with Python. I am specifically interested in modifying the Target Path string.

Thanks in advance


Solution

  • Create a *.desktop file and put it in the desktop folder. See also how to add it to the Unity launcher.