PDA

View Full Version : [ubuntu] Hardy - Nautilus Script - Open as Root



maxweld
April 26th, 2008, 12:38 PM
Under earlier versions of Ubuntu I have a script in "home/me/.gnome2/nautilus-scripts/Open as root" which allowed me to open files as root, requesting a password, and using gksudo. This no longer works under Hardy.

the script contains:


for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done

Any ideas what needs to be done to get a similar function under Hardy?

Thanks

Coolit
April 26th, 2008, 03:27 PM
If I need elevated privileges in nautilus I normally just open a terminal and type "sudo nautilus"

You could put that in a script I guess:)

nicedude
April 26th, 2008, 03:31 PM
look for nautilus scripts, I found a package installed it and now I have like 60+ scripts in 7 or 8 categories that work off right click.

Linja
April 26th, 2008, 05:43 PM
Install nautilus-gksu from the repositories. However, this is currently affected by a bug which prevents it from appearing in the context menu. You'll have to copy or link the lib from /usr/lib/nautilus/extensions-1.0 to /usr/lib/nautilus/extensions-2.0 and then run a killall nautilus.

maxweld
April 26th, 2008, 07:00 PM
Thanks all.

I like the suggestion from Coolit as a temporary workaround, but once the nautilus-gksu package is working, I will use it. Thanks