Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: baz on February 23, 2010, 01:08:55 PM

Title: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 23, 2010, 01:08:55 PM
Hi,

Anyone know of a way to have an "Open as Root" option in Thunar for opening system config files?

Cheers,
Baz
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: Arslan S. on February 23, 2010, 02:39:42 PM
i didn't try it but you can give it a shot
http://wiki.zenwalk.org/index.php?title=HOWTO_create_%27Open_as_Root%27_option_in_Thunar_right-click_menu (http://wiki.zenwalk.org/index.php?title=HOWTO_create_%27Open_as_Root%27_option_in_Thunar_right-click_menu)

that requires gksu and you need to have a root password

instead of gksu you can try maybe

"sudo mousepad %f"
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 23, 2010, 02:49:52 PM
I saw that too but it fails on the first line:

Thunar -> Edit -> Configure custom actions... -

There is no "Configure custom actions"
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: Arslan S. on February 23, 2010, 03:10:49 PM
http://thunar.xfce.org/plugins.html (http://thunar.xfce.org/plugins.html)

thunar-uca plugin is required

i recommend to create an extension thunar-plugins.tcz including all of the thunar plugins such as archive, uca and thumbnailers these are actually very useful plugins
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 23, 2010, 05:17:47 PM
Those look promising, but I think you have check out from svn and build and make and all that jazz.
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 24, 2010, 11:29:01 AM
Is there somewhere to request/vote on extensions from people smarter than I?
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: curaga on February 24, 2010, 12:25:35 PM
http://forum.tinycorelinux.net/index.php?topic=349.0
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: Arslan S. on February 24, 2010, 02:36:28 PM
i am preparing xfce4 plugins extensions building various plugins both for thunar and panel
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 26, 2010, 07:13:02 PM
I just noticed the new extension in the repo, I can't say how awesome this community is!!
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: moB on February 27, 2010, 08:12:21 AM
Hmmm...can't you open thunar from shell with sudo prefix?

This works for emelfm and other apps.

Perhaps some other combination is required for tc? Not running thunar in tc, but let me test...

Yes, it works under Linux Mint (just tested it in another window.) You get a red banner at the top warning you that you are running as root.

b.

"Nevertheless, some there were, who even in the face of these things were ready to give chase to Moby Dick"
The Whale
Title: Re: Anyway to have an "Open as Root" option in Thunar?
Post by: baz on February 27, 2010, 02:50:26 PM
Close your eyes, and count back from 5. Imagine yourself in front of your computer trying to implement some complex thing. You have 5 browsers open with tons of tabs each giving you small clues to the solution. At the same time you are furiously navigating your filesystem, looking at different parts using multiple file managers. You feel you are close, but you can't be too sure because there is so much to consider. Soon you find a great lead and start to hunt it down. You are 10 levels deep in a folder structure, and realize that as long as you fix X given Y you will be able to get Z which will get you to A! You click and click and click right to the magical config file. The answer is right there, you know it! You open it to edit, make your complex changes - PERMISSION DENIED! Oh no you have to sudo! Where's the command line!! Which folder was I in!! What was I doing!!! Ahh forget it! You play Halo instead. That's what happened to RMS and why he was not able to develop his own kernel, ceding the spotlight to Linux.