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

Workaround for Wayland desktops #70

Open
Ximi1970 opened this issue Jan 1, 2021 · 13 comments
Open

Workaround for Wayland desktops #70

Ximi1970 opened this issue Jan 1, 2021 · 13 comments
Labels
not related / normal desktop behavior Action not related to the add-on / companion app, standard desktop behavior See Workarounds #159

Comments

@Ximi1970
Copy link
Owner

Ximi1970 commented Jan 1, 2021

This add-on and companion app will never work with FULL Wayland desktops due to the design of Wayland. (No interaction between window clients)

Please have a look at the workaround:

#159 (comment)

@Ximi1970 Ximi1970 added cannot fix cannot fix not related / normal desktop behavior Action not related to the add-on / companion app, standard desktop behavior not supported Not suppported atm labels Jan 1, 2021
@christophehenry
Copy link

Another Thunderbird system tray extension, Birdtray, has the same issue. However, in their issue, the maintainer, mentions a new Wayland protocol specifically designed for system trays, the Wayland Toplevel Management protocol. It is currently unstable and probably still not implemented in Gnome and KDE — as mentionned in Birdtray's issue — but hopefully, it will eventually reach stable and offer a way to solve that issue?

@Ximi1970
Copy link
Owner Author

Thanks for the tip. But we need to wait for it the work at least a bit before I will have a try.

@mi16087
Copy link

mi16087 commented Dec 20, 2021

I recently switched to EndeavourOS (Arch-based distro) gnome which has wayland and xorg (wayland is default), i set everything up on xorg (and activated gnome extension "AppIndicator and KStatusNotifierItem Support"), then switched to wayland and it's still working, restarted, run wayland from the start, stil working. Gnome version is 41.2. Did not try to set it up on wayland cause it's statet that it doesn't work. Mabe the gnome extension is the key. I don't know much about it, just wanted to share the info. :)

@christophehenry
Copy link

IIRC, there's a compatibility layer between Wayland and X11 for now because a lot of softwares have no support whatsoever of Wayland yet. I suppose it's why it' working right now. But, as the time passes, X11 is expected to slowly become deprecated and Wayland become the standard.

@lgbaldoni
Copy link

Hi, I just switched to Wayland on Leap/Plasma and noticed the problem ☹️

Any news?

@ouzbirki
Copy link

Making Thunderbird run under XWayland mode makes it work properly. Basically, edit your desktop entry and change Exec line like this: env GDK_BACKEND=x11 thunderbird. Tried many other solutions, like Birdtray and the Minimize on Close extension; none of them worked like charm as systray-x does.

@lgbaldoni
Copy link

Would it be possible to reimplement this in Betterbird?

@LinAGKar
Copy link

env GDK_BACKEND=x11 thunderbird

Or MOZ_ENABLE_WAYLAND=0, which specifically applies to only Thunderbird and Firefox. I feel like the readme should point to one of those instead of recommending to disable Wayland completely (or as an alternative).

@Zahrun
Copy link

Zahrun commented Sep 19, 2023

@christophehenry
Copy link

If I understand the code correctly, the relevant code is here. It uses internal Mozilla API which, in the present case, cannot be used if I'm not mistaken.

@Ximi1970
Copy link
Owner Author

@ouztheone thank you for the simple workaround. Tested in Ubuntu 23.10 and it worked nicely. Will change the README.
I will also have a look at the other distributions. Hopefully they all allow the same workaround.
@LinAGKar the MOZ_ENABLE_WAYLAND=0 seems not to work in Ubuntu?

@ouzbirki
Copy link

@Ximi1970 I'm using Arch Linux so you can count that too.

@Ximi1970 Ximi1970 changed the title Not working with FULL Wayland desktops Not working with Wayland desktops Oct 21, 2023
@Ximi1970 Ximi1970 added See Workarounds #159 and removed cannot fix cannot fix not supported Not suppported atm labels Oct 21, 2023
@Ximi1970 Ximi1970 changed the title Not working with Wayland desktops Workaround for Wayland desktops Nov 7, 2023
@tbertels
Copy link
Contributor

Betterbird now has a working systray on linux, included on Wayland Betterbird/thunderbird-patches#111 https://www.betterbird.eu/releasenotes/index.html https://www.betterbird.eu/downloads/index.php https://www.betterbird.eu/donate/index.html

BTW: Anyone, like me, who wanted Wayland support for this to get Birdtray or some other Thunderbird add-on working should go check out BetterBird. It's a set of patches on top of Thunderbird which include a tray icon that works in both X11 and Wayland.

Betterbird's minimize to tray feature doesn't actually work on Wayland in Wayland mode (with Exec=env MOZ_ENABLE_WAYLAND=1): Betterbird/thunderbird-patches#279
This means that the text will be blurry if you use upscaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not related / normal desktop behavior Action not related to the add-on / companion app, standard desktop behavior See Workarounds #159
Projects
None yet
Development

No branches or pull requests

8 participants