Bug 383159 - Polkit support for opening root owned file without read permissions
Summary: Polkit support for opening root owned file without read permissions
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 17.04.3
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-05 05:08 UTC by Brennan Kinney
Modified: 2019-05-19 15:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brennan Kinney 2017-08-05 05:08:27 UTC
I've noticed and really appreciate the recent polkit support for running Kate without root permissions to open a root owned file and be prompted for password to save changes, this is great!

I have opened a file from /var/log/libvirt/qemu/vmname.log that Kate refused to read due to not having read permissions, whereas /etc/default/grub I guess does. Could it be possible to also support this usecase like writing a file as root is now supported? 

Ideally, I could just browse to the location and select the file in Dolphin as I do now, then Kate will be able to open it with a polkit password prompt to continue.

I am presently using the following command to workaround this(-n flag avoids issues caused by having an existing Kate window open, for editing grub config file and current support, using the same Kate window wasn't an issue like it is with sudoedit): EDITOR="kate -n" sudoedit /path/to/file.log
Comment 1 Christoph Cullmann 2019-05-19 15:05:45 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann