-
Notifications
You must be signed in to change notification settings - Fork 61
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
Adding show/hide support for full Wayland #426
Comments
there aren't many properly working wayland window managers - some would say it's only sway and gnome. so you wouldn't have that many targets if you wanted to implement it individually |
I am having the same Wayland problem, I am running Pop OS 22.04 and just switched to Wayland on the login screen. When I logged in birdtray started up but it couldn't minimize Thunderbird, is there any way of getting birdtray to work with Wayland? |
For the time being, a simple workaround is to start birdtray with x11 session if possible. Simply execute the following command to start birdtray: |
not working here on my side even with the env variable set |
I had to use |
I was able to get around this by launching Thunderbird as an X11 app through XWayland. Birdtray was already running under X11 for me by default, but if not you can follow @Flying--Dutchman's solution. Modify Then in Birdtray, go to Settings, Advanced, and in "Thunderbird command line" change it from |
Using this, it'll open thunderbird from the tray as expected, but if we use the thunderbird icon in app menu, it'll not work anymore |
Try changing the Thunderbird launch command to Edit: I'm also using the plugin Minimize on Close. |
Using this suggestion I was able to get it kind of, sort of working. My issue here is that it works only once, and then I can't show/hide by clicking the application tray icon unless I go into Settings--not changing anything, just opening the dialog--and clicking "OK." Once that's done, I've "reloaded" it like a shotgun to work again one more time lol. I have to remember each time I use the tray icon to open the Settings window again to ensure that it's loaded up for the next time. Also, if I open Thunderbird from the wm/de, and then close it, birdtray will just open it again and refuse to hide it. Doing this also makes the "Open settings and close it" trick no longer work. It's just stuck and constantly reopening Thunderbird, refusing to hide it. Interestingly enough, typing "birdtray -s" and then "birdtray -H" in the terminal resets everything. In addition to this, typing "birdtray -s" in terminal and then clicking the app icon in tray also hides it properly. Maybe this information is helpful to someone?
On this I am not sure what you mean. Can you clarify? Are you talking about editing the Exec line in the .desktop entry in /usr/share/applications/thunderbird.desktop ? |
Thank you so much. This worked for me on Debian bookworm. You can either edit the menu entry for birdtray, or use a script to start it. |
that's not work when thunderbird when is wayland native |
Betterbird now has a working systray on linux, included on Wayland |
not simple download source and build..., problem into build from source instruction. not integrated into my debian, I try never use package out of my debian |
On Debian bookworm you may need to ensure that kwin-wayland is installed. |
Is there any actual progress being made on this? I rely on this project heavily so I'll gladly lend a hand on this if so or start on it myself if not. |
I got it working for the most part, go to Birdtray settings - Advanced and enter the following in the command line
of course, your install location may be different. There might have been something else to do but try birdtray out in the terminal, the error messages will help |
May it be possible to check the whether thunderbird is running via the system process status? For example, when running birdtray, it automatically starts a headless thunderbird. When another thunderbird tries to launch, more processes of thunderbird launches, then the headless thunderbird automatically shuts down to let the GUI launch. When later the GUI is closed, birdtray starts a new headless thunderbird. Does it make any sense? If so, no matter wayland of xorg, it will work. It shall not consume too much resource compared with the checking window existence. Anyway, I simply dislike xwayland, as it has terrible performance under high-DPI and I believe that it should not be used unless you have to. |
I have tested that usually thunderbird headless mode will only have a certain number of processes, including some started by extensions. Thus, if much more processes are started, we can suppose the user wants to start the GUI through, for example notification, desktop file, a Thus, I suppose that the I have not yet tested the Flatpak or snap or Appimage of thunderbird, but I suppose them to be similar. |
The headless one is very easy to be found via |
KDE on Arch recently moved to wayland by default which broke it for me too. |
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 |
Good news: sys tray support for Thunderbird on Linux is in development. https://connect.mozilla.org/t5/ideas/system-tray-support-on-linux/idc-p/55780/highlight/true#M32692 |
To those interested: systray-x supports Wayland and works as expected (in Debian 12). It can also be installed from repository in most Linux distributions. I could not get Birdtray working in Wayland. |
Like Betterbird, it requires to use Xwayland by setting |
Did you try the method of changing @tbertels |
Isn't this the same setting as in #426 (comment) by basically falling back to the X server? |
That's a good point actually: Thunderbird doesn't have to be blurry with Xwayland on KDE Plasma. One just has to enable the right setting to let X11 apps apply scaling by themselves: https://pointieststick.com/2022/06/17/this-week-in-kde-non-blurry-xwayland-apps/
Indeed. 👨🏽🦲 |
At this moment Birdtray works fine with "wayland" desktop which also runs embedded X Server. However Birdtray does not work in so-called "full wayland" support, without the X Server.
The main limitation is that Wayland provides no standard way to figure out which other top-level windows are being shown. This in turn means Birdtray cannot interact with them. This impacts the following functionality:
Those limitations will not be fixed until Wayland fully implements the Wayland Toplevel Management protocol which is currently unstable and not implemented by KDE or Gnome window managers. The only possible current alternative is to integrate directly with each window manager, but considering the number of them, this is not a viable alternative. Thus the full Wayland support is still pending on when this specification a) becomes stable and b) becomes implemented.
The email monitoring and showing functionality works fine, however.
The text was updated successfully, but these errors were encountered: