Bug 503519 - Kate opens files in existing instances even if they are all on other virtual desktops
Summary: Kate opens files in existing instances even if they are all on other virtual ...
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: Git
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL: https://gitlab.freedesktop.org/waylan...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-29 11:37 UTC by Andrew
Modified: 2025-07-05 21:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2025-04-29 11:37:51 UTC
SUMMARY
When opening a file from a file manager or with "kate filename.txt" command, it will always find the last used running instance and create a new tab there. This happens even if all the Kate windows are not on current virtual desktop. I have to start a new Kate manually and only then open the file.

STEPS TO REPRODUCE
1. Start Kate
2. Switch to a different virtual desktop
3. Open a text file with Kate through a file manager

OBSERVED RESULT
Best case - Kate flashes in your panel's task manager widget, and that's it.

EXPECTED RESULT
A new instance of Kate appears with the requested file in its only tab.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Originally I though this is not a bug, but Méven on discuss.kde.org forwarded me back here.
Comment 1 Méven 2025-04-29 11:44:16 UTC
Can take some inspiration from:
https://invent.kde.org/system/dolphin/-/merge_requests/529
Comment 2 Christoph Cullmann 2025-04-29 14:38:37 UTC
(In reply to Méven from comment #1)
> Can take some inspiration from:
> https://invent.kde.org/system/dolphin/-/merge_requests/529

Perhaps I miss something there, but how does that work on Wayland? For X11 we have such code, too.
Comment 3 Christoph Cullmann 2025-04-29 14:45:50 UTC
We will need something like

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/203

for Wayland.
Comment 4 Christoph Cullmann 2025-05-02 15:24:04 UTC
As soon as it is possible, we will fix that, but so far we lack infrastructure for this.
Comment 5 Christoph Cullmann 2025-06-19 15:04:41 UTC
Linked this bug in the freedesktop request.