<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>503519</bug_id>
          
          <creation_ts>2025-04-29 11:37:51 +0000</creation_ts>
          <short_desc>Kate opens files in existing instances even if they are all on other virtual desktops</short_desc>
          <delta_ts>2026-06-24 23:00:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>general</component>
          <version>Git</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/203</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew">chuvik.hacker</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>christoph</cc>
    
    <cc>hc6505</cc>
    
    <cc>meven</cc>
    
    <cc>wiagn233</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2419855</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew">chuvik.hacker</who>
    <bug_when>2025-04-29 11:37:51 +0000</bug_when>
    <thetext>SUMMARY
When opening a file from a file manager or with &quot;kate filename.txt&quot; 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&apos;s task manager widget, and that&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2419859</commentid>
    <comment_count>1</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-04-29 11:44:16 +0000</bug_when>
    <thetext>Can take some inspiration from:
https://invent.kde.org/system/dolphin/-/merge_requests/529</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2419890</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2025-04-29 14:38:37 +0000</bug_when>
    <thetext>(In reply to Méven from comment #1)
&gt; Can take some inspiration from:
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2419896</commentid>
    <comment_count>3</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2025-04-29 14:45:50 +0000</bug_when>
    <thetext>We will need something like

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

for Wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2420634</commentid>
    <comment_count>4</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2025-05-02 15:24:04 +0000</bug_when>
    <thetext>As soon as it is possible, we will fix that, but so far we lack infrastructure for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2434187</commentid>
    <comment_count>5</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2025-06-19 15:04:41 +0000</bug_when>
    <thetext>Linked this bug in the freedesktop request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2526508</commentid>
    <comment_count>6</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2026-06-24 23:00:26 +0000</bug_when>
    <thetext>*** Bug 521985 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>