vrcmr
vrcmr

Reputation: 161

How to make custom tray icon for an application?

I need a custom tray icon for my application written in python. I am using the code from ubuntu wiki. https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Python_version

The problem is, I can not create image from file. So I assume I need the name for my icon. Something like Gtk.STOCK_HOME or "indicator-messages". I can't find any documentation how to define the name for my icon in the system.

Any DOCs? For GTK3 Python 2.7 are used in my app.

Upvotes: 4

Views: 1906

Answers (1)

vrcmr
vrcmr

Reputation: 161

Finally found a hack:

put the icon in your home directory and run this command.

$ sudo xdg-icon-resource install --novendor --size 16 my-icon.png my-icon-name

Than just run the code from ubuntu wiki.

Upvotes: 3

Related Questions