Bug 430216 - Kate can't open files starting with ':' from the CLI
Summary: Kate can't open files starting with ':' from the CLI
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: Git
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
Depends on:
Reported: 2020-12-10 13:11 UTC by Ahmad Samir
Modified: 2021-01-03 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 21.04


Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Samir 2020-12-10 13:11:03 UTC
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