Categories
Linux Ubuntu

How to use Konqueror or Kate as sudo in Kubuntu KDE 4 Remix

As I hope I’ve made apparent in these two links below, the proper way to launch a file browser as root in KDE is kdesu konqueror:
www.psychocats.net/ubuntu/permissions
www.psychocats.net/ubuntu/graphicalsudo

Unfortunately, in the KDE 4 version of Kubuntu 8.04, if you try to launch Konqueror (the file browser) or Kate (the text editor) with root (or administrative) permissions, you won’t be able to.


If you try kdesu konqueror, you’ll be told the command is not found.


So you’ll have to run the command with the explicit path to the executable:
kdesu /usr/lib/kde4/bin/konqueror


Likewise, the command kdesu kate will not be found.


So you’ll have to run the command
kdesu /usr/lib/kde4/bin/kate
to have it launch successfully.

By the way, I don’t know if there are any adverse side effects, but I believe you can restore the original functionality by symlinking the executables back to the normal path:
sudo ln -s /usr/lib/kde4/bin/kate /usr/bin/kate
sudo ln -s /usr/lib/kde4/bin/konqueror /usr/bin/konqueror