-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Mint/Cinnamon doesn't support StatusNotifier tray icons standard #9176
Comments
According to https://bugs.archlinux.org/task/65483 StatusNotifier tray icons support implemented but it's not complete:
|
This fixed it. |
In https://bugs.archlinux.org/task/65483 they say that even if you enable the |
That's not a fix, that's a workaround, and not a good one imo. libappindicator falls back to xembed (gtk.statusicon) when no appindicator applet is found (i.e. when that setting is OFF).. and in Mint it is patched to fallback to xappstatusicon which supports HiDPI and symbolic icons and which itself falls back to xembed as a last resort. If you want something that works everywhere you need to either support xembed, or support something which falls back to it. |
Afaik we've currently no way of supporting StatusNotifier without enabling libappindicator support in Cinnamon and doing so seriously regresses the user experience with many apps. |
@p3x-robot what app do you test this with? I noticed keybase was mentioned in the Arch bug report, it seems to be a CLI app though. Just to summarize the current state of things in Cinnamon in regards to tray technology:
In terms of API now:
Xembed should be a last resort, it's the worst solution really, but because it works everywhere we should definitely make sure to always fall back to it. I'm not sure how this is is implemented in electron... but if you use StatusNotifier without using libappindicator, you might be missing that important fallback mechanism. |
I asked @mtwebster to shine in on this, he's more experienced than me when it comes to xappstatusicon and the fall back mechanisms in it and in libappindicator. |
I use the tray for p3x-onenote: https://github.com/patrikx3/onenote You can try with latest for example AppImage, you have to Enable support for indicators, otherwise it is not working. |
Thanks @p3x-robot, I can reproduce it with https://github.com/patrikx3/onenote/releases/download/v2020.4.131/P3X-OneNote-2020.4.131.AppImage.
Test again with support for indicators disabled, no icon appears in the tray. It looks like the app uses the StatusNotifier dbus bus (and so it's picked up by our applet when indicator support is enabled) but it doesn't seem to use libappindicator, otherwise that would make it fallback to xembed when our support for indicators is disabled. |
@p3x-robot hi I've been working on support for this (linuxmint/xapp#89) and using that onenote app for testing. One thing I noticed, in comparison to the other programs I'm testing with (all of which use libappindicator) that the app only attempts once, at startup, to establish a status icon. If, for instance, I kill my watcher program, and restart it, the onenote icon never returns (until I kill and restart it). It's not a huge deal, and this could very well be a bug on my end - I'm just trying to make sure our StatusIcon support will behave as expected (there's is not a lot of consistency with this around the different implementations), and thought I'd mention this behavior. Most users won't be constantly restarting their desktop and would never notice this. |
@p3x-robot edit - I was wrong again - but I think this is such an unlikely occurrence I'm not going to worry about this. Under normal circumstances the watcher never exits, except when you log out. |
Issue
Linux Mint/Cinnamon doesn't support StatusNotifier tray icons standard. So it's an upstream issue you might want to place in Mint/Chromium issues tracker.
electron/electron#21445 (comment)
Steps to reproduce
Since ELectron v8 the tray is not working because they switched to StatusNotifier .
Expected behaviour
Show tray.
The text was updated successfully, but these errors were encountered: