Create an ‘Open as Root’ Action in Konqueror

Konqueror.png

To have a service menu which opens the selected directory as root in Konqueror, create a file, say konq_root.desktop in ~/.kde/share/apps/konqueror/servicemenus with the following content:

[Desktop Entry]
ServiceTypes=inode/directory
Actions=open_as_root

[Desktop Action open_as_root]
Name=Open as Root
Icon=konsole
Exec=kdesu konqueror %F

Now, if you right click any directory in Konqueror and go to Actions, a new menu appears, Open as Root. If you select more than one directory, Konqueror will open each of them in a new tab.

Related Posts

Comments are closed.