Bug 485677 - CLI always opens new windows as if called with --new
Summary: CLI always opens new windows as if called with --new
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 24.02.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 13:17 UTC by Benjamin Buch
Modified: 2024-04-26 13:35 UTC (History)
2 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 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