Dialog requesting privileges in kate

Hi, how should I ask Kate to request root password when saving a file?
Similar to how it is used in other distributions like Magenta, I think they use polkit rules for it.

Sorry for my wrong English.

Greetings.

Personally, I open Kate with root permissions before I start editing, then the file can and would be saved as root.

ie.
Open a console then upgrade permissions with “su”
Then type “kate”

Used to be, you’d have to run kdesu or something like that for other Desktops, but nowadays I do what I just described.

TSU

On 6/7/19 3:16 PM, tsu2 wrote:
>
> Personally, I open Kate with root permissions before I start editing,
> then the file can and would be saved as root.
>
> ie.
> Open a console then upgrade permissions with “su”
> Then type “kate”
>
> Used to be, you’d have to run kdesu or something like that for other
> Desktops, but nowadays I do what I just described.
>
> TSU
>
>

Be very careful when using ‘su’ to become root, root can and will over
write configuration files in you home directory. It’s better and safer
to use ‘su -’ which causes root to only use /root for configuration files.


Ken
unix since 1986
S.u.S.E.-openSUSE since 1998

I know all the alternatives: su -, sudoedit, dolphin services, etc.
I want the Kate to work as in the other distributions. I think it’s a polkit configuration but I do not know which. :dont-know: