![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Ubuntu QA Team
![]() Join Date: Mar 2005
Location: İstanbul
Beans: 5,798
|
Create a launcher with the following command:
Code:
gksudo "gnome-open %u" |
|
|
|
|
|
#2 |
|
Skinny Extra Sweet Ubuntu
![]() Join Date: Feb 2005
My beans are hidden!
|
Re: HOWTO: Easily open any file as root via drag & drop
Very nice trick 23meg! very nice.
__________________
Sylvia: Look at what you've done to him! Christof: I have given Truman the chance to lead a normal life. The world, the place you live in, is the sick place. |
|
|
|
|
|
#3 |
|
100% Pure Ubuntu
![]() |
Re: HOWTO: Easily open any file as root via drag & drop
So simple yet so easy and usefull. Wonder why no one has thought of it earlier. Should definitely be added to UbuntuGuide.org
|
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Easily open any file as root via drag & drop
Should be a trivial matter to work this up as a nautilus script, so it appears as an option in your right-click menu.
Call me silly, but an icon on my desktop that opens things as root just makes me nervous.
__________________
--dare2dreamer |
|
|
|
|
|
#5 | |
|
Gee! These Aren't Roasted!
![]() |
Re: HOWTO: Easily open any file as root via drag & drop
Quote:
Code:
#!/bin/sh gksudo "gnome-open $NAUTILUS_SCRIPT_SELECTED_URIS" Code:
chmod +x ~/.gnome2/nautilus-scripts/Open\ as\ root |
|
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2004
Location: The Netherlands
Beans: 162
Ubuntu Breezy 5.10
|
Re: HOWTO: Easily open any file as root via drag & drop
Dude this is great!
|
|
|
|
|
|
#7 |
|
Ubuntu QA Team
![]() Join Date: Mar 2005
Location: İstanbul
Beans: 5,798
|
Re: HOWTO: Easily open any file as root via drag & drop
yes that's better, thanks Nis. and thanks all for the kind words
|
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: Easily open any file as root via drag & drop
I love it when someone else does the work for me.
You might do a little error checking on the file names to make sure it doesn't hang up on filenames with spaces. Either way, lovely hack.
__________________
--dare2dreamer |
|
|
|
|
|
#9 | |
|
Gee! These Aren't Roasted!
![]() |
Re: HOWTO: Easily open any file as root via drag & drop
Quote:
|
|
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: Brisbane, Australia
Beans: 105
Ubuntu 6.10 Edgy
|
Re: HOWTO: Easily open any file as root via drag & drop
This is excellent
Thanks 23meg and Nils. Life just got even easier maqi
__________________
A Gentleman is one who can play the bagpipes, yet chooses not to. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|