Like the upstream KDE project says it is not advised to run a filemanager as root.
There are plans for moving/copying (dolphin) and saving (kate) files to root locations to use policykit in the future.
To edit a configuration file with kate for example you can use sudoedit.
You can call it like this for example:
As for the root action service menu. This needs of course an update for it to work with pkexec instead of kdesudo or some other graphical sudo application. I am currently taking a look at their code to see if I can make it work with pkexec.
Update: Noticed that we already patched root actions to work with pkexec. Though of course kate or dolphin can't open be open even with this. So if you need to copy/move/remove files as root activate the entries for this in the service menu to do so. It will then use pkexec to copy/move/remove files
There are plans for moving/copying (dolphin) and saving (kate) files to root locations to use policykit in the future.
To edit a configuration file with kate for example you can use sudoedit.
You can call it like this for example:
Code:
EDITOR=kate sudoedit /etc/X11/xorg.conf
As for the root action service menu. This needs of course an update for it to work with pkexec instead of kdesudo or some other graphical sudo application. I am currently taking a look at their code to see if I can make it work with pkexec.
Update: Noticed that we already patched root actions to work with pkexec. Though of course kate or dolphin can't open be open even with this. So if you need to copy/move/remove files as root activate the entries for this in the service menu to do so. It will then use pkexec to copy/move/remove files