Bug 367931

Summary: Kate has no ability to save files that require root access if not started as root or sudo
Product: [Applications] kate Reporter: rburns
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bob.mt.wya, christoph
Priority: NOR    
Version First Reported In: 16.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.