![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
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,882
|
Create a launcher with the following command:
Code:
gksudo "gnome-open %u"
__________________
"Theoretically, a great number of ideas assures a great number of choices, but such choices are essentially quantitative. This practice is as bewildering as it is wasteful. It discourages spontaneity, encourages indifference, and more often than not produces results which are neither distinguished, interesting, nor effective. In short, good ideas rarely come in bunches." -- Paul Rand, The Politics of Design |
|
|
|
|
|
#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,882
|
Re: HOWTO: Easily open any file as root via drag & drop
yes that's better, thanks Nis. and thanks all for the kind words
__________________
"Theoretically, a great number of ideas assures a great number of choices, but such choices are essentially quantitative. This practice is as bewildering as it is wasteful. It discourages spontaneity, encourages indifference, and more often than not produces results which are neither distinguished, interesting, nor effective. In short, good ideas rarely come in bunches." -- Paul Rand, The Politics of Design |
|
|
|
|
|
#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 | |
|
|