Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 283
vrcmr Avatar asked Sep 05 '25 03:09

vrcmr


1 Answers

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.

like image 136
vrcmr Avatar answered Sep 07 '25 19:09

vrcmr