Bug 367931 - Kate has no ability to save files that require root access if not started as root or sudo
Summary: Kate has no ability to save files that require root access if not started as ...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 16.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-28 17:57 UTC by rburns
Modified: 2018-08-18 09:19 UTC (History)
2 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 rburns 2016-08-28 17:57:12 UTC
When opening a file as a normal user that does not have write access to said file (ex. a configuration file in /etc), there is no way to save the file without restarting Kate with sudo.

Reproducible: Always

Steps to Reproduce:
1. Open a file you do not have write access to.
2. Make a change
3. Attempt to save file

Actual Results:  
The following error message is displayed.

The document could not be saved, as it was not possible to write to /etc/wgetrc.

Check that you have write access to this file or that enough disk space is available.

Expected Results:  
Kate to pop up a request for the sudo password and properly save the file.

There are text editors that perform this functionality flawlessly (like sublime) and is really the only reason I do not use Kate as my default text editor.
Comment 1 Christoph Cullmann 2018-08-18 09:19:10 UTC
There is no a kauth helper for exactly that usecase.