I have written a Python application (with pygtk and pymozembed) which I use very often.
In the Unity dash my application has an icon (as I definded in the .desktop
file). But when I start it, there is no icon in the launcher. Just an empty hole.
Launcher file: /home/witek/.local/share/applications/kadro-reader.desktop
[Desktop Entry]
Name=Google Reader
Comment=Open site with Kadro: reader -> https://www.google.com/reader/view/
Icon=/home/witek/.kadro/sites/reader/icon.png
Exec=/home/witek/.kadro/sites/reader/start.sh
Categories=Network;
Type=Application
Python code for window initialization:
win = gtk.Window()
win.set_title("Google Reader")
win.set_icon_from_file("/home/witek/.kadro/sites/reader/icon.png")
How to add an Unity launcher icon to my Python application?
gtk-update-icon-cache
after installing your icon?