WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Anyway to have an "Open as Root" option in Thunar?  (Read 3185 times)

Offline baz

  • Full Member
  • ***
  • Posts: 216
Anyway to have an "Open as Root" option in Thunar?
« on: February 23, 2010, 10:08:55 AM »
Hi,

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

Cheers,
Baz

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #1 on: February 23, 2010, 11:39:42 AM »
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

that requires gksu and you need to have a root password

instead of gksu you can try maybe

"sudo mousepad %f"
« Last Edit: February 23, 2010, 11:43:03 AM by Arslan S. »

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #2 on: February 23, 2010, 11:49:52 AM »
I saw that too but it fails on the first line:

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

There is no "Configure custom actions"

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #3 on: February 23, 2010, 12:10:49 PM »
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
« Last Edit: February 23, 2010, 12:16:16 PM by Arslan S. »

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #4 on: February 23, 2010, 02:17:47 PM »
Those look promising, but I think you have check out from svn and build and make and all that jazz.

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #5 on: February 24, 2010, 08:29:01 AM »
Is there somewhere to request/vote on extensions from people smarter than I?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
The only barriers that can stop you are the ones you create yourself.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #7 on: February 24, 2010, 11:36:28 AM »
i am preparing xfce4 plugins extensions building various plugins both for thunar and panel

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #8 on: February 26, 2010, 04:13:02 PM »
I just noticed the new extension in the repo, I can't say how awesome this community is!!

Offline moB

  • Newbie
  • *
  • Posts: 49
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #9 on: February 27, 2010, 05: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

Offline baz

  • Full Member
  • ***
  • Posts: 216
Re: Anyway to have an "Open as Root" option in Thunar?
« Reply #10 on: February 27, 2010, 11:50:26 AM »
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.