23meg and Nis,
thanks for the nice script.
However, it didn't work for me and I modified it a little:
Code:
#!/bin/sh
### openas-root:
### nautilus script for opening the selected files as superuser (uid=0),
### utilizing the appropriate applications.
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnome-sudo "gnome-open $uri" &
done
### end of file.
Without the "for" loop, it didn't work for me. Besides that, the "&" makes the script non-blocking and opens several files at once.
Maybe you want to add this to your first post -- other users seem to have similar problems (i.e. poyner).
Regards,
Alexander
Bookmarks