STEPS TO REPRODUCE 1. Set Sublime Text as default editor 2. Open a file that has it as an assigned default app (eg, text file) 3. First file opens Sublime and focuses it 4. Second file does open in it, but doesn't bring it to the top and focuses on it, but instead it loads in the background with the Sublime mini icon bouncing near mouse cursor like it's loading OBSERVED RESULT The window of the app doesn't get focused with the activated file EXPECTED RESULT The window should get into focus with the activated file show in it SOFTWARE/OS VERSIONS Linux/KDE Plasma: Neon Wayland KDE Plasma Version:6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 ADDITIONAL INFORMATION Similar to https://www.reddit.com/r/gnome/comments/18kvlb7/wayland_opening_file_in_alreadyrunning_app_fails/?rdt=55071 Something similar to this, but with SublimeText
This is an issue in Sublime itself, which apparently lacks proper support for the xdg_activation_v1 Wayland protocol.
Created attachment 172787 [details] SublimeText changelog An recent update to the app concerning xdg-activation protocol, but still the focus is not working properly... I don't get it, is it still on their side, or is this something KDE related?
The protocol needs to be implemented for both the sending app and the receiving app, and both need to implement it properly. So it's not enough that Sublime does it, the sending app needs to as well. What is the other app?
(In reply to Nate Graham from comment #3) > The protocol needs to be implemented for both the sending app and the > receiving app, and both need to implement it properly. So it's not enough > that Sublime does it, the sending app needs to as well. > > What is the other app? Dolphin. Although weird, from my perspective, for it to not have it implemented, as it is a first class citizen in KDE.
Yes, Dolphin should definitely be doing the right thing here. Does it work if the receiving app is Kate, and not Sublime Text? If that works, then the issue is in Sublime Text's implementation of the activation protocol.
(In reply to Nate Graham from comment #5) > Yes, Dolphin should definitely be doing the right thing here. Does it work > if the receiving app is Kate, and not Sublime Text? > > If that works, then the issue is in Sublime Text's implementation of the > activation protocol. You're correct. Kate works properly. It only fails with Sublime Text. I'll reach out to their devs. Thanks!
You're welcome!
For anyone having the same issue, here is the reason (from https://github.com/sublimehq/sublime_text/issues/6236) "KDE Neon is based on ubuntu 22.04. While it's running the latest KDE it has pretty outdated versions of GTK (which ST uses). The version of GTK you have doesn't implement the xdg-activation protocol and so ST can't be focused." So, until we move to the next Ubuntu LTS, this can't be fixed.