You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tray icon disappear from Topbar when system goes in stand by #22443
When starting electron everything works fine: the icon (and the menu) is visible in the Topbar.
But if system goes stand by, when I log in again the icon is disappeared.
Reacted by Reik Keutterling, Markus Rathgeb, Felix Eckhofer, Dominik Salvet, Dan Kortschak, sebastianpaweska, José Miguel García Urrutia and Shashi Shekhar Singh
By random chance, I noticed a similar bugreport which mentions a fix for the telegram desktop app. There seems to be a problem with the icon counter, but the telegram app does not use electron. However, maybe it helps.
The above-referenced issue says it's Gnome related but I face the issue of getting disappeared icon after the suspend mode using Xfce Desktop Environment, happens quite rarely though.
After reading various bugs, here is my understanding of the problem of the disappearing icon on lock/unlock when using Gnome AppIndicator plugin.
From what I get, Chromium doesn't re-register the tray after the StatusNotifierWatcher disappears/reappears from the d-bus session on lock/unlock, while it probably should. From what I quickly read the spec doesn't really seem to deal with that, it just says only one StatusNotifierWatcher instance is allowed at any time.
From my point of view, the best upstream fix Gnome-side would be that the StatusNotifierWatcher is not handle by the gnome-shell plugin, but by some other process, so it doesn't depend on Gnome plugins lifecycle. Then the gnome plugin can register itself as a StatusNotifierHost.
It turned out Electron is getting rid of DBus related tray icon implementation rolled out with @chromium update in Electron v8 in favor of previously used / GTK/appindicator approach, see #23674.
Activity
beltrame commentedon Mar 25, 2020
This happens with all electron applications, I can confirm with Ubuntu 19.10
jhasse commentedon Apr 2, 2020
This is a Chromium bug, see https://bugs.chromium.org/p/chromium/issues/detail?id=1042098
felixrieseberg commentedon Apr 21, 2020
Interesting tidbit from @sbuschjaeger:
vladimiry commentedon Apr 27, 2020
The above-referenced issue says it's Gnome related but I face the issue of getting disappeared icon after the suspend mode using Xfce Desktop Environment, happens quite rarely though.
MatMaul commentedon May 8, 2020
After reading various bugs, here is my understanding of the problem of the disappearing icon on lock/unlock when using Gnome AppIndicator plugin.
From what I get, Chromium doesn't re-register the tray after the StatusNotifierWatcher disappears/reappears from the d-bus session on lock/unlock, while it probably should. From what I quickly read the spec doesn't really seem to deal with that, it just says only one StatusNotifierWatcher instance is allowed at any time.
https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/126cb934c59562e55e6454dece9056e15b8e2221/statusNotifierWatcher.js#L126
There is a workaround here using introspection, which seems to be what the chromium team is complaining (https://bugs.chromium.org/p/chromium/issues/detail?id=1042098), but I am not sure they understood that they are complaining about a workaround that should not be needed if they correctly watch for StatusNotifierWatcher changes.
I am interested in your opinion on my interpretation here, before I bump the chromium bug with a link to this post :)
From my point of view, the best upstream fix Gnome-side would be that the StatusNotifierWatcher is not handle by the gnome-shell plugin, but by some other process, so it doesn't depend on Gnome plugins lifecycle. Then the gnome plugin can register itself as a StatusNotifierHost.
Thought on using something similar to https://github.com/zulip/zulip-desktop/pull/922/files in the meantime ?
Thatoo commentedon May 16, 2020
Same on Debian Buster (10).
Experimented about Riot-desktop : element-hq/element-web#13692
vladimiry commentedon May 26, 2020
It turned out Electron is getting rid of DBus related tray icon implementation rolled out with @chromium update in Electron v8 in favor of previously used /
GTK/appindicatorapproach, see #23674.codebytere commentedon Jun 4, 2020
Closed by #23674
fix: remove dbus-monitor exec
fix: remove dbus-monitor exec