Bug 430216 - Kate can't open files starting with ':' from the CLI
Summary: Kate can't open files starting with ':' from the CLI
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: Git
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
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
Sentry Crash Report:


Attachments

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
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