At first I want to say that i'm not sure that kio is the right thing to request this, but someone have sayd to me that everything filesystemrelated in KDE apps is made by kio - so I hope thats the place.
Today i have seen this blog post: https://blog.martin-graesslin.com/blog/2017/02/editing-files-as-root/ that you can not start kate with sudo anymore. Thats a good thing I love it. But now with sudoedit is what i really hate.
A Better solition would be that you can start the app as normal user and the app itself (or the filedialog) will ask for the permissions to save this file, when its outside your users directory.
1. browser to the file
2. click on
3. it opens with kate
4. you edit the file
5. you click on "save" (or "save as" + browse to the location)
5a. It'll ask you for root permissions when needed
My request is that functionality in 5a, that it'll automatically ask the user for higher permissions, when they want to save something that don't belongs to them.
A good example that came to my mind (because i suffer from it really often)
I build some Distro-PKGes for myself. I do this as normal user.
Now I start kate and create a script + save it to ~/porjects/GIT/PKGNAME/script, then I start sudo nano ~/porjects/GIT/PKGNAME/script, make some smaller changes and re-save the script to /usr/bin/script_test.
If kate would ask for permissions I could do both things at once, but right now the main issue is:
when you start Kate as normal user you can not save to /use/bin
when you start Kate as root user your file in ~/porjects/GIT/PKGNAME/script will belong to root
Hi, this is already tracked here: https://bugs.kde.org/show_bug.cgi?id=179678
There are plans to make this happen, hopefully with a GSoC project.
*** This bug has been marked as a duplicate of bug 179678 ***