openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks » "open As Root" Right Click In Gnome

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read

ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Jan-2008, 15:03
AndrewTheArt
Guest
 
Posts: n/a
Default

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!
  #2 (permalink)  
Old 17-Jan-2008, 05:26
WJM
Guest
 
Posts: n/a
Default


Very nice tip Andrew! I will be using this one
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2