Reputation: 53873
I've just written my very first little GUI-app using PySide. I just wanted to add an icon to it so it doesn't show up as a grey questionmark item in the Ubuntu Launcher. I would guess that something like that is a very simple thing to do, but I cannot find any information about it. Maybe I'm not searching correctly, or maybe I plain stupid, but I can't find out how to do that.
Does anybody have a tip or hint in the right direction?
Upvotes: 2
Views: 934
Reputation: 20950
For Unity, you would have to create a desktop file and store it in ~/.local/share/applications
or /usr/share/applications
. The content of the file should look somehow like this:
[Desktop Entry]
Name=AppName
Exec=/path/to/app
Icon=/path/to/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;
Upvotes: 3