Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Tray icon disappears after screen lock on Ubuntu 19.10 #187

Closed
beltrame opened this issue Apr 4, 2020 · 6 comments
Closed

Tray icon disappears after screen lock on Ubuntu 19.10 #187

beltrame opened this issue Apr 4, 2020 · 6 comments
Labels
Not Our Bug This may be someone else's problem

Comments

@beltrame
Copy link

beltrame commented Apr 4, 2020

Hamsket loses the tray icon after locking the screen on Ubuntu 19.10.

Steps to reproduce

  1. Start hamsket with tray icon enabled
  2. Lock screen
  3. Unlock

Expected behavior

Hamsket tray icon should still be present

Actual behavior

The tray icon disapears

ENVIRONMENT

Hamsket: v0.6.0 Nightly
OS: Ubuntu 19.10 stock install
Arch: x64

This is an electron/Chromium bugs maybe (see here), but there are workarounds that might apply here.

@TheGoddessInari TheGoddessInari added the Not Our Bug This may be someone else's problem label Apr 4, 2020
@TheGoddessInari
Copy link
Owner

I looked over the link, and all of the related issues. Given that it affects stock Chrome/Chromium, and Chrome says it's straight up a GNOME bug, it isn't really within the scope to fix it, at least, not with running code like that!

If there's a way to work around the issue in native Electron, I'd consider it, but running arbitrary code in the user session like that suggested workaround is beyond the pale.

The problem here has generally been that GNOME is generally quite hostile to anything it considers no longer necessary, while other DEs (tend) to support the relevant standards. AFAIK, GNOME doesn't want to support this, and in fact hasn't for many years,

If a company like Google, with all of its resources and love for GTK+, can't convince GNOME to be a good shepherd, what chance do projects with a single person working on them have?

There are also several issues on https://github.com/ubuntu/gnome-shell-extension-appindicator/issues that seem to indicate that the extension providing the support for the systray stuff at all is getting affected too.

I know it sucks and isn't convenient and people really like GNOME, but this is the kind of stuff that they arbitrarily impose on their own users. Neither users nor developers get a say in this.

@beltrame
Copy link
Author

beltrame commented Apr 4, 2020

I'm not entirely sure this is a GNOME bug, as Rambox (which uses an earlier [7.1.12] version of Electron) is not affected. Something has changed with Electron between 7.x and 8.x that made the issue appear... I haven't actually discovered what yet.

@aravindhp
Copy link

I am seeing this issue too. I do not see this issue with RamBox.

@beltrame
Copy link
Author

beltrame commented Apr 7, 2020

Summary of my findings: the issue is the switch of Chromium from libappindicator to StatusNotifier/DBus (committed to Electron 8+). gnome-shell requires the DBus introspection protocol to be implemented on tray icons and Chromium didn't think it was worth implementing. The implementation is indeed assigned to somebody for Chromium, but I don't see it happening soon. Rambox uses Electron 7.2 so it still uses libappindicator, and therefore doesn't show this issue.

An ugly workaround is to deactivate the tray icon and use an extension to get Hamsket in the tray (e.g. https://extensions.gnome.org/extension/1750/minimize-to-tray/), but then you lose the tray color change when you have notifications.

@andrekeller
Copy link

This has been fixed for my in the newer electron version, probably due to electron/electron#23926

@beltrame
Copy link
Author

Yes, works for me as well (interesting backpedaling from electron/chromium)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Not Our Bug This may be someone else's problem
Projects
None yet
Development

No branches or pull requests

4 participants