I have a question (not sure if its actually a bug in my code, a “special” Cinnamon feature or an issue there) regarding the Freedesktop system tray icons in Cinnamon's notification area.
In my application, I create a tray icon using the XAppStatusIcon object, setting the icon from a GResource. This works fine on XFCE and kde (and maybe others?), but fails on Cinnamon. As example, see the attached trivial code (xapp-test.tar.gz, just say maketo build it):
- run
./sample – displays a stock icon, which woks fine on Cinnamon, XFCE and kde plasma.
- run
./sample x which should display the custom icon from the resource. Works perfectly on XFCE and kde plasma, but cinnamon displays an “icon missing” icon, although the screen's default icon theme “knows” it.
Interestingly, if I store the custom icon in a file and set it by calling xapp_status_icon_set_icon_name(status_icon, "/path/to/sample-icon.png"), it is displayed correctly in Cinnamon.
I ran the tests on Debian testing, but see the same effent on stable and LMDE.
Any idea what goes wrong in my code?
I have a question (not sure if its actually a bug in my code, a “special” Cinnamon feature or an issue there) regarding the Freedesktop system tray icons in Cinnamon's notification area.
In my application, I create a tray icon using the
XAppStatusIconobject, setting the icon from aGResource. This works fine on XFCE and kde (and maybe others?), but fails on Cinnamon. As example, see the attached trivial code (xapp-test.tar.gz, just saymaketo build it):./sample– displays a stock icon, which woks fine on Cinnamon, XFCE and kde plasma../sample xwhich should display the custom icon from the resource. Works perfectly on XFCE and kde plasma, but cinnamon displays an “icon missing” icon, although the screen's default icon theme “knows” it.Interestingly, if I store the custom icon in a file and set it by calling
xapp_status_icon_set_icon_name(status_icon, "/path/to/sample-icon.png"), it is displayed correctly in Cinnamon.I ran the tests on Debian testing, but see the same effent on stable and LMDE.
Any idea what goes wrong in my code?