RSS

Add “edit as root” to Dolphin’s right-click menu…

12 Dec

Continuing to tweak my Fedora 10 installation:

I discovered that the Dolphin file manager has no “edit as root” in the right-click service menu. This is a necessary tool. A little googling provided this fix:

Open Kwrite

In the new, blank document, paste this code:

Code:
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin,text/*,application/x-desktop
Actions=Editassu

[Desktop Action Editassu]
Name=Edit as Root
Name[it]=Edita come Root
Name[fr]=Editer en tant que Root
Name[es]=Editar como Root
Name[de]=Als root bearbeiten
Icon=kfm
Exec=kdesu “kwrite” “%U”

Save the file with a useful name such as “editasroot.desktop” in the following directory:

/home/(username)/.kde/share/kde4/services/ServiceMenus/

Restart Dolphin and enjoy. Thanks to neverendingo at kdeforums.org!

Advertisements
 
6 Comments

Posted by on December 12, 2008 in Uncategorized

 

Tags: , , , , ,

6 responses to “Add “edit as root” to Dolphin’s right-click menu…

  1. vunknown

    January 5, 2009 at 9:54 am

    Thanks

     
  2. Alex

    December 12, 2009 at 2:50 pm

    On my Debian Sid system, I had to change the last two lines to this:

    Icon=document-edit
    Exec=kdesu kwrite %F

     
  3. realtime

    March 31, 2010 at 10:36 pm

    useful!

    @vunknown: same here in Arch, thanks a lot.

     
  4. realtime

    March 31, 2010 at 10:39 pm

    er, I mean Alex =)

    ~ by eyemeansit on December 12, 2008.
    vunknown said this on January 5, 2009 at 9:54 am
    Alex said this on December 12, 2009 at 2:50 pm
    realtime said this on Your comment is awaiting moderation. March 31, 2010 at 10:36 pm

    God knows I love FSF/GNU/OS world!

     
  5. eyemeansit

    April 26, 2010 at 3:04 am

    Alex: I had to do the same for Sabayon 5.2 KDE. Thanks!

     
  6. Bucky

    June 1, 2010 at 10:38 am

    Remember, WordPress is going to “educate” the quotes around that last line, so at the very least, after you cut and paste, you’ll need to replace the curly double quotes with simple straight quotes.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: