Bug 485677

Summary: CLI always opens new windows as if called with --new
Product: [Applications] kate Reporter: Benjamin Buch <benni.buch>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: benni.buch, christoph
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Benjamin Buch 2024-04-17 13:17:52 UTC
SUMMARY

I configured TotalCommander to open files with Kate via:

C:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\kate.exe "%1"

I tested with the latest release and the nightly build from

- https://cdn.kde.org/ci-builds/utilities/kate/release-24.02/windows/
- https://cdn.kde.org/ci-builds/utilities/kate/master/windows/# (2024-04-08)

Whenever I open a file, a new window is opened with this file. Thats the behavior that should be trigger if I use:

C:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\kate.exe --new "%1"

Withtout --new, the expected behavior is to open the file in an existing Kate window.

STEPS TO REPRODUCE

PowerShell:

PS C:\Users\benjamin.buch> C:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\kate.exe c:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\data\applications\org.kde.kate.desktop
PS C:\Users\benjamin.buch> C:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\kate.exe C:\Users\benjamin.buch\AppData\Local\Programs\Kate\bin\data\applications\org.kde.kwalletd6.desktop

OBSERVED RESULT

Two seperate Kate Windows.

EXPECTED RESULT

Both files open in the same Kate Window.

SOFTWARE/OS VERSIONS
Windows: 11
KDE Plasma Version: 24.02.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-04-25 18:17:09 UTC
Hmm, true, that is not wanted. Seems our single application code doesn't work like it should.
Comment 2 Benjamin Buch 2024-04-26 13:35:21 UTC
This is fixed in:

- https://cdn.kde.org/ci-builds/utilities/kate/release-24.05/windows/

There is new Bug which affected the deployment. I was able to workaround by copying the missing file from the previos release.

- https://bugs.kde.org/show_bug.cgi?id=486158