Saturday, November 22, 2008

How to Add open files as root in right click menu

gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root

Insert the following lines into the new file

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnome-sudo "gnome-open $uri" &
done
Save the edited file

chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on the file and Scripts->Open as root

1 comment:

Anonymous said...

...please where can I buy a unicorn?