I noticed this issue on wayland: When i open a text file from Dolphin in a virtual desktop, it adds a new tab to a different already running instance of Kate in a different virtual desktop instead of launching a new window in the current one. This is different from X11 which would launch a new window in the current virtual desktop unless there is already a running instance in the current virtual desktop. Note that launching Kate manually does indeed launch a new instance.
kate should already activate itself when opening a new tab. As is, the problem is that virtual desktops are not exposed to clients.
FWIW in Plasma 5.26, you can configure what happens when you perform an action that would activate a window that's in a virtual desktop other than the current one: - Switch to the virtual desktop with that window - Bring that window to the current desktop
Yeah, but from X11, I also expect the option to have multiple instances of Kate one per virtual desktop.
I have the same problem also with Firefox and Okular. On X11 I fixed it with a script based on wmctl, which is not possible on Wayland unfortunately.