Bug 430216

Summary: Kate can't open files starting with ':' from the CLI
Product: [Applications] kate Reporter: Ahmad Samir <a.samirh78>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 21.04
Sentry Crash Report:

Description Ahmad Samir 2020-12-10 13:11:03 UTC
E.g.:
kate :test

doesn't work; opening via the file dialog should work after bug 322837 is fixed.
Comment 1 Bug Janitor Service 2020-12-12 19:16:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/134
Comment 2 Christoph Cullmann 2021-01-02 12:51:41 UTC
Git commit 68dbf03bc7ce86f15ce82300159eb00db335bdeb by Christoph Cullmann, on behalf of Ahmad Samir.
Committed on 02/01/2021 at 12:49.
Pushed by cullmann into branch 'master'.

UrlInfo: handle filenames starting with ':'

QFile/QDir treat file paths starting with ':' as absolute paths (treated as
Qt Resource (qrc) paths), which means such a path is always absolute from
their POV. Adjust the code to be able to open files starting with ':' when
kate is used on a relative path from the CLI.

M  +39   -26   urlinfo.h

https://invent.kde.org/utilities/kate/commit/68dbf03bc7ce86f15ce82300159eb00db335bdeb