The same issue happens to me when opening links from any app on Wayland. For example, every time I click a link on a Discord chat, I have to manually click on the Firefox window because the focus is not automatic.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Same for me on Ubuntu 23.10. When I open a discord link I get a notification saying "Firefox is ready" instead of switching focus to firefox, and clicking that notification does not open Firefox.
I’m not sure about Thunderbird specifically, but it works with any apps (like Kitty terminal or Slack client) on Plasma Wayland session for me. You’ve got no reaction at all, or is the task manager icon at least turning orange for attention?
This used to be a problem few plasma versions back as there wasn’t any standardized protocol for this, and then it got stabilized and implemented https://wayland.app/protocols/xdg-activation-v1
Is your default web browser set properly (check default programs in system settings, you might try and set it to something else then back)? And how about the following:
xdg-open https://kde.org
The task manager icon does indeed correctly turn orange.
Default web browser is set properly. I tried setting it to Chromium and every single app I tested with Chromium, correctly opened and took focus with Chromium. Switched back to Firefox and once again it's not always taking focus. Only this time, when I tested Steam, Firefox didn't take focus from Steam even though it did before.
This definitely seems to be an issue with Firefox + Wayland given that Chromium had no issues opening up all the links from different apps I tried.
At least the issue is now whittled down a bit more. Thanks for your help!
This probably works as intended, even of it’s not the desired behavior. Given that the protocol only allows clients to activate()
the surface that needs attention and never mentions the actual window focus, it is up to the compositor (in this case Kwin) to decide what to do exactly with the request.
On a side note, I think this behavior should be configurable. I for one would not want windows to automatically focus ever (and Plasma even switches the virtual desktops when that happens), but I also see why someone would want to.
Maybe Firefox, Thunderbird or Steam are running in XWayland and that causes different behaviour between them. Just guessing.
I thought that too but if you see my edits above, I tried several different app combos, and it's not consistent. I tried setting Chromium as my default browser (it opened all links and took focus correctly every time) and when I switched Firefox back to the default browser, Firefox didn't take focus from Steam even though it did originally 🤦🏻♀️
Wait for plasma 6.
I'm not sure this is specifically a KDE/Plasma 5 issue though. Firefox correctly gets focus on X. But it also correctly gets focus on Wayland when opening URLs in Firefox from apps that aren't Thunderbird.
So far that I've found it's only a combination of Thunderbird, Firefox and Wayland.
Which version of Thunderbird are you running?
It's in my OP - Thunderbird 115.6.1 :)