Launcher icon for a python script on Ubuntu

Python application icon on unity bar

Create ~/.local/share/applications/myapp.desktop:

[Desktop Entry]
Type=Application
Name=[Name of your app, for example My App. This can be free text.]
Exec=[full path to your executable and executable name, for example /usr/local/bin/myapp.py]
Icon=[full path to your executable's icon and icon name, for example /usr/local/share/icons/apps/myapp.png]
Terminal=false
StartupNotify=true

Links:

Licensed under CC BY-SA 3.0