Skip to content
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

[Bug]: No Tray icon for Arch Linux #36602

Closed
3 tasks done
trungutt opened this issue Dec 7, 2022 · 10 comments · Fixed by #36815
Closed
3 tasks done

[Bug]: No Tray icon for Arch Linux #36602

trungutt opened this issue Dec 7, 2022 · 10 comments · Fixed by #36815
Assignees
Labels

Comments

@trungutt
Copy link

trungutt commented Dec 7, 2022

Preflight Checklist

Electron Version

22.0.0

What operating system are you using?

Other Linux

Operating System Version

Arch Linux, Manjaro

What arch are you using?

x64

Last Known Working Electron version

22.0.0

Expected Behavior

Be able to use Electron tray API

Actual Behavior

I cannot have any Tray icon showing up since the last release of Electron 22.0.0. I believe we change the underlying implementation for Tray API with this PR.

With Electron <= 21, it worked fine

Here's the info of OS we're using

$ uname -a
Linux tower 6.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 02 Dec 2022 17:25:31 +0000 x86_64 GNU/Linux

or

$ uname -a                                                                                                                                                                                                                                                                  
Linux manjaro 5.15.60-1-MANJARO #1 SMP PREEMPT Thu Aug 11 13:14:05 UTC 2022 x86_64 GNU/Linux

I attached the minimum reproduction example here. Steps:

  • yarn install
  • then yarn start
  • cannot see the Tray icon
  • yarn add --dev electron@21.3.3
  • yarn start again
  • then we see the Tray icon again (should be a T-shirt png)

electron-tray-22.zip

Testcase Gist URL

No response

Additional Information

We don't experience this issue for Mac, Windows and Ubuntu

@SpacingBat3
Copy link

@trungutt this actually depends on the DE – some seems work, others don't seem to support StatusIconLinuxDbus

For me on Arch Linux everything works as it should be, at least on XFCE.

@trungutt
Copy link
Author

trungutt commented Dec 12, 2022

Given the PR changing to use StatusIconLinuxDbus is supposed to solve serious Tray issues on Linux, especially the one onsetImage segfault, I can't wait to upgrade to Electron 22.

But given this issue, it would be great to hear from Electron team on it. If StatusIconLinuxDbus isn't supported, I guess it would be nice to have a fallback to libapindicator on those DE.

Perhaps downgrading to 21.3.3 is a temporary solution for us, which has the downside of setImage segfault obviously

@JokerGermany
Copy link

any news?

@zcbenz zcbenz added platform/linux component/tray bug/regression ↩️ A new version of Electron broke something labels Jan 3, 2023
@zcbenz zcbenz self-assigned this Jan 3, 2023
@zcbenz
Copy link
Member

zcbenz commented Jan 3, 2023

@trungutt On which desktop environment do you have this problem?

@aiordache
Copy link

@zcbenz This happens on Arch Linux with i3 and Xorg (session started with startx).

@rhertzog
Copy link

rhertzog commented Jan 4, 2023

FTR a friend of mine using i3 on Debian (without any desktop environment) has this issue.

I am using Debian unstable with GNOME 43 and I don't have the problem so far.

@zcbenz
Copy link
Member

zcbenz commented Jan 5, 2023

Thanks for the information, it seems that i3 has always had issues with Chromium's implementations of tray icons (which we started using since #36472): i3/i3#3842.

I'll see if I can fix it, if not I can make our code fallback to use libappindicator for i3.

@zcbenz
Copy link
Member

zcbenz commented Jan 6, 2023

I think I know the root cause now, i3 actually has no support for modern app indicators, and apps using libappindicator will fallback to use GtkStatusIcon instead.

@iacore
Copy link

iacore commented Jan 18, 2023

I use Polybar. Same issue here. Downgrading to electron 20 worked

@JokerGermany
Copy link

JokerGermany commented Jan 18, 2023

I use Ubuntu Mate 22.04, had no Problems with old electron version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants