For whatever reason, openSUSE disables the polkit for Kate that will make it so Kate will prompt for a password when you try to edit root owned files.
The only way I could figure out how to get Kate to open these files is using the command VISUAL="kate -b" sudoedit <file>
.
So I wrote a little helper script (to put be put in .bashrc) that opens kate for any file.
- If the current user has write access to the file/folder, it'll open kate as the current user
- If the current user does not have write access to the file/folder, it'll use sudoedit to open the file.