Ever want to launch an application as an administrator by a simple right click? Well, I have. Here's how you do it...
(1) Create a file called "Open as root" in the folder /home/<your user name>/.gnome2/nautilus-scripts/ (open up this folder and Right click -> Create Document -> Empty File)
(2) Open up this file in a text editor. The file contents are -
Code:
for uri in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do
gnomesu gnome-open "$uri" &
done
(3) Right click on the document, select "Properties", select "Permissions", and tick the box "Allow executing as a program. (You can also chmod +x of course from a terminal)
(4) Restart your GUI, preferably by logging in and out.
Right click on any icon or file on your desktop or in Nautilus, select "Scripts", and select "Open as root". Enjoy!