KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans (44) .- Knowledge Base  . 

Root Actions Servicemenu


KDE Service Menu

Score 90%
Root Actions Servicemenu

Root Actions Servicemenu

Root Actions Servicemenu

Link:  http://
Downloads:  35381
Submitted:  Nov 8 2006
Updated:  Mar 22 2016


Version: 2.9

- You need to have "ruby" installed for Automatic installation to work
- Make sure you get the latest version, the automatic download from dolphin seems to download a really old version (2.7.3) for some mysterious reason. Manual download from kde-apps/kde-look will guarantee you'll get the latest version.

- From version 2.8 onwards, Root Actions only supports KDE4 or later...Files from version 2.7.3 are included in the package for KDE3 users.
- My mail address can be found in the README file in the package if you wish to contact me for translations or feedback (You can of course also post a comment here)
- I can't test the menu on KDE3 anymore, so I can't guarantee the menu works 100% on KDE3
- Full Kf5 support is work in progress, but the menu should work on kf5 as is.


Root Actions servicemenu provides a convenient way to perform several actions 'as root', from the right-click context menu in KDE filemanagers.

It aims to be distribution agnostic, if you experience issues in your distribution, drop me an email describing the issue.

The menu needs a properly configured kdesu/kdesudo to work (kdesudo is preferred, for some added functionality, like remembering password for a period of time...timeout is configurable by sudo settings)

Any comments, criticism and improvement suggestions welcomed :)

Included in the download are .desktop file versions for KDE3 konqueror, KDE3 dolphin, KDE4 and KF5 (both konqueror and dolphin) and an importable user action xml file for krusader KDE4...see installation for details.


I've dropped version 1.x from the package since 2.x is stable and can do a lot more than 1.x. If you're still interested in the 1.x version, drop me a mail and I'll send it to you.

Thanks to:
Stefan Majewsky - German translation (1.1.x and 2.x)
Pierre Buard - French translation (1.1.x)
Guillaume Millet &
Jean-Marc Detourmignies - French translation (2.x)
Alessio - Italian translation (1.1.x)
Massimo Pissarello - Italian translation (2.x)
João Pedro Gomes - Portuguese translation (2.x)
Viruscg - Brazilian Portuguese translation (1.1.x amd 2.x partial)
Eduardo Grau - Spanish translation (1.1.x and 2.x)
Kenny Verstraete - Dutch translation (1.1.x and 2.x)
Paul Körössy - Hungarian translation (2.x)
nikt_taki - Polish translation (2.x)
Andreas Nordal - Norwegian translation (2.x)
Jakub Matas - Czech translation (2.x)
Donatas Glodenis - Lithuanian translation (2.x)
Mladen Pejaković - Serbian translation (2.x)
Netrebin Alexey - Russian translation (2.x)
Cihat Imamoglu - Turkish translation (2.x)
Manuel Tortosa Moreno - Catalan translation (2.x)
Neo Tet - Greek translation (2.x)
Adrián Chaves Fernández - Galician translation (2.x)
Mihael Simonič - Slovene translation (2.x)
Niklas Åkerström - Swedish translation (2.x)

Essential: (these should already be installed on a standard KDE installation)
perl -the script is written in perl
kdesu | kdesudo -to gain administrative privileges
kdialog -to show dialogs
kreadconfig -to read kde configuration
dolphin | konqueror -filemanager
kwrite | kate -editor
ark -handles compression

krename -for multiple file (batch) renaming
krusader -to use the included krusader actions
xdg-utils -for default application support (2.5.x-)


Some distributions have packages available in either their main repos or community repos. For easy installation and possible distro specific patches you can use them if available. Manual installation instructions below:

Version 2.3 ->
1. Uncompress the rootactions-servicemenu.pl script in Root_Actions_2.x to a directory in your $PATH. /usr/local/bin or /usr/bin are two valid options. Make the script executable (if it's not).

2a. (Konqueror for KDE3) Uncompress the three .desktop files in /konqueror-KDE3 to ~/.kde/share/apps/konqueror/servicemenus (This will enable the menu for individual users, if you wish to enable the menu for all users, copy the files to /usr/share/apps/konqueror/servicemenus instead).

2b. (Dolphin for KDE3) Uncompress the two .desktop files in /dolphin-KDE3 to ~/.kde/share/apps/d3lphin/servicemenus (This will enable the menu for individual users, if you wish to enable the menu for all users, copy the files to /usr/share/apps/d3lphin/servicemenus instead).

2c. (Dolphin and Konqueror for KDE4) Uncompress the two .desktop files in /dolphin-KDE4 to your kde4 servicemenu folder (possibly ~/.kde/share/kde4/services/ServiceMenus...although $KDEHOME [".kde"] can be something else in your distribution). If you wish to use konqueror instead of dolphin as your filemanager, edit 10-rootactionsfolders.desktop by changing 'dolphin' to 'konqueror'.

2d. (Dolphin and Konqueror for Kf5) Copy the two .desktop files in /dolphin-KDE4 to your kf5 servicemenu folder (likely ~/.local/share/kservices5/ServiceMenus). If you wish to use konqueror instead of dolphin as your filemanager, edit 10-rootactionsfolders.desktop by changing 'dolphin' to 'konqueror'.

2e. (Krusader for KDE4) Import krusader_rootactions.xml file in /krusader-KDE4 with krusader's action manager.

----Available Actions----------------------------------------------------------------

Version 2.x
- Open Terminal Here (folders) - open a root terminal session in chosen folder
- Open in File Manager (folders) - open chosen folder(s) in file manager
- Open as Text (files) - open chosen folder(s) in text editor
- Open With ... (both) - open chosen items in a program of your choice

- Copy (both) - copy a single file or folder (ADDED in 2.1)
- Move/Rename (both) - if multiple items selected and a batch renamer installed (default is krename) start renamer, otherwise use a simple move/rename dialog
- Compress (both) - Compress selected files/folders (ADDED in 2.7)
- Delete (both) - Completely removes chosen items (as this is potentially hazardous, there is an extra confirmation dialog), handy for removing back-up files etc.

- Ownership to Root (both) - change ownership of chosen items to root:root
- Ownership to Active User (both) - change ownership of chosen items to current user
- Ownership to ... (both) - change ownership of chosen items to UID:GID of your choice

- Change Permissions (both) - change permissions of chosen items
If only a single folder is selected, permissions/ownership can be set recursively. If changing permissions recursively, files are only set executable if they already are executable (Otherwise all files in a directory would be set executable if the parent folder is set executable, which is necessary for the folder to be accessible)

----Translating and customizing:-----------------------------------------------------

Read the README file in the package for instructions on translating and customizing the menu


This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.


2.9 KF5 fixes
- Support for kf5-kdesu not in $PATH
- fixes in installer/uninstaller scripts
- workaround: use --nofork to open konsole as root

2.8.7 KF5 installer fix
- Fix installer script (and uninstaller) for kf5 (detect both kde4 and kf5 and install the .desktop files as necessary).
- add version number to the script

2.8.6 KF5 update & bugfix
- kf5 default application fix
- Really, really, really fix the --caption issue
- Updated README to include plasma5/kf5

2.8.5 Root reminders back for KDE4 (Really fix it this time)
- Added back root reminders for KDE4 (thanks to Caldazar for the patch), haven't found a way to add them to KF5 apps.

2.8.4 Root reminders back for KDE4
- Bad upload
2.8.3 KF5 quick fix
- Removed root reminders for now because of kf5/qt5 compatibility (no "--caption" option support)
- I'll try to add them back if I find a way to do that. TIP: Setting a different theme/color scheme for root will help you distinguish root apps even without the reminders.

2.8.2 Hopefully refixed the issue originally fixed in 2.7.4/2.8 and reverted in 2.8.1
- Using dbus-run-session, which is a better solution than dbus-launch.
- dbus-run-session is only available in dbus 1.8.x >, so the fix will only work with newer dbus releases, but the menu will still work with older versions (but the bug is obviously not fixed with that version).

2.8.1 "Out with the new, in with the old and tested" -release
- Revert "dbus-launch fix" in 2.7.4/2.8 as this is a suboptimal solution to the problem see "Known Issues". I'll revisit the original issue once dbus-run-session trickles down from upstream dbus.
- Reorganize package to move KDE3 files to a separate directory (Still hoping to get to that code clean-up part on the KDE4 version)

2.8 Reupload 2.7.4 as 2.8 since this version does not support KDE3 anymore (KDE3 files from version 2.7.3 are still included in the package for those that use KDE3)

2.7.4 Bugfix
- Use dbus-launch when starting applications as root (should fix dbus issues like not being able to open files from file manager that was opened as root) REVERTED in 2.8.1

2.7.3 Bugfix
- Fixed GHNS installation bug in 2.7.2 (forgot to update install script)

2.7.2 Translation release
- Added Swedish translation

2.7.1 GHNS bugfix & translation release
- GHNS: Create servicemenu directory (if it doesn't exist) with the install script
- Added Slovene translation

2.7 (Stable)
- Improve filemanager and texteditor fallbacks if xdg-mime fails to detect default applications
- Changes from 2.6:
1. Compress action (using ark)
2. GHNS installation in KDE4 dolphin
- GHNS installation is still a recent addition, so there may be issues with it, but it should be safe to try (the worst thing that should happen is that the installation fails).
- 2.7 is likely the last version that supports KDE3. I can't test the menu on KDE3 anymore, and dropping KDE3 workarounds would allow me to clean up the code. I'd still include 2.7 for KDE3 but no new features.

2.6.99 (2.7 RC2)
- Try removing version number from the tarball to see if it fixes a few issues with GHNS
- Edit GHNS scripts accordingly

2.6.98 (2.7 RC)
- Fix install/uninstall scripts when using kdesu or xdg-su

2.6.96 (2.7 beta4)
- Fix install/uninstall dialogs in older versions of KDE (pre 4.6)
- Uninstallation dialog made a bit more informative
- Small fixes in the install/uninstall scripts
- Test removing the extract-directory in $KDEHOME/share/apps/servicemenu-download/ when uninstalling, dolphin's servicemenu uninstallation doesn't seem to do that for some reason.
- No changes to the servicemenu itself.

2.6.94 (2.7 beta3)
- EXPERIMENTAL: Added install/uninstall scripts for GHNS in dolphin (for testing only)
- No changes to the servicemenu itself.

2.6.92 (2.7 beta2)
- Bytesize bugfix to fix an issue with kdesu on KDE SC 4.6

2.6.90 (2.7 beta1)
- Added "Compress" menu option, brings up ark compression dialog (as root) to choose filename, format etc.
- Consider compress option a beta feature...all testing feedback welcome.

2.6 "Stable"
- Fixed bug with default application detection on desktop files with kde4-prefix

2.5.92 (2.6_beta2) (hopefully just) temporary bugfix
- removed "--overwrite" option from normal copy and move operations (fix error in older versions of KDE). The "advanced" noninteractive mode still uses the option (So it'll work on KDE SC 4.5 only).

2.5.90 (2.6_beta1) kde-cp and kde-mv
- Use kde-cp and kde-mv (if available) instead of cp and mv (This should prevent accidental overwrites by bringing up KDE's overwrite dialog). If you prefer the old "noninteractive" behavior, change $CPDIALOGS to "false" in the rootactions-servicemenu.pl script (recommended for "advanced" users only)
- Some optimizations on the default application checks (removing redundancies)
- Refreshed requirements. xdg-utils is an optional requirement (default application checks need it, but the menu will work without it)

2.5.0 (Default applications, TESTING)
- KDE4 desktop files should now use your chosen default applications for "File Manager" and "Text Editor" actions.
- As I cannot test the changes in KDE3, KDE3 desktop files still use hardcoded applications (which you can change by editing the desktop files)
- As this also includes some changes in the code, it may contain bugs (please report if you run into any). It should work, but consider this a testing release (there is only so much I can test myself).

2.4.11 Bugfix
- Changed "terminal" icon to "utilities-terminal" in KDE4 desktop files (and krusader xml)...fixes missing icon in "open terminal here" action for KDE SC 4.5
- Also made KDE3 desktop files consistent in using konsole icon

--Full changelog included in the download---

Send to a friend
Other  Apps  from kubicle
Report inappropriate content

goto page: prev   1  2  3  4  5  6  7  8  9  10  11  12 


 The problem "cannot execute ..

 by olegue on: Apr 13 2011
Score 50%

The fix of the line 843 doesn't make things better . I receive still the same massage : Cannot execute command ' 'rm -f -r' /home/mine/Desktop/probe.tar.gz'.

OpenSuSE 11.4 x64 KDE4.6 .

Reply to this


 Re: The problem "cannot execute ..

 by kubicle on: Apr 13 2011
Score 50%

Thanks for the report.

Are you sure you're getting the error from the rootactions menu?

The script does not run "rm -r -f" at any point.

When you delete an item with the menu, it should run (if using kdesu):
kdesu -d -c "'rootactions-servicemenu.pl' do_delete '/path/to/target'", and the actual removal is done with:
rm -r --preserve-root '/path/to/target'

I'll look into it, but would gladly accept any additional details on the issue (if you have them).

Reply to this


 Re: Re: The problem "cannot execute ..

 by kubicle on: Apr 13 2011
Score 50%

Correction: "rm -f -r"

Reply to this


 Re: Re: Re: The problem "cannot execute ..

 by olegue on: Apr 14 2011
Score 50%

I downloaded Root Actions Servicemenu
2.7 yesterday and installed it, checked for the permitions of the installed files.
The command "root menu" appeared in contex menu as it expected. On execution it askes me for the root password and then I receive that message.
I tried also installing it in my home folder. After installation I tried it again and again I receive that message.

I tried with executing the command rm -r --preserve-root '/path/to/target' from a console and it worked fine without asking me for the password.The file was deleted.

Then I tried kdesu -d -c "'rootactions-servicemenu.pl' do_delete '/path/to/target'" - it asked me for the password, I entered the pass and it accepted it , there were no message , but the file was not deleted.

Reply to this


 Re: Re: Re: Re: The problem "cannot execute ..

 by kubicle on: Apr 14 2011
Score 50%

Thanks for the additional info, I'll look into it. I'll be going away for the weekend, so I can't get to this until next week, but if you could answer a few more questions I'd have a bit more to chew on once I get back:

1. Do you get an error for all actions (or just delete)?

2. What is the output if you run 'whereis rootactions-servicemenu.pl' in a terminal?

3. Can you post the output if you run 'rootactions-servicemenu.pl root_delete /path/to/the/file_you_wish_to_delete' in a terminal (to see if the menu reports any errors in the terminal)

Reply to this


 Re: Re: Re: Re: Re: The problem "cannot execute ..

 by olegue on: Apr 19 2011
Score 50%

1. Do you get an error for all actions (or just


2. What is the output if you run 'whereis
rootactions-servicemenu.pl' in a terminal?

two@linux:~> whereis rootactions-servicemenu.pl
rootactions-servicemenu: /usr/bin/rootactions-servicemenu.pl /usr/bin/X11/rootactions-servicemenu.pl

3. Can you post the output if you run
'rootactions-servicemenu.pl root_delete
/path/to/the/file_you_wish_to_delete' in a
terminal (to see if the menu reports any errors in
the terminal)

two@linux:~> rootactions-servicemenu.pl root_delete /home/two/Desktop/123.txt
which: no kdesudo in (/usr/lib64/mpi/gcc/openmpi/bin:/home/two/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/NX/bin)

Reply to this


 Re: Re: Re: Re: Re: Re: The problem "cannot execut

 by olegue on: Apr 19 2011
Score 50%

I get error for all the actions.


 Re: Re: Re: Re: Re: Re: The problem "cannot execut

 by kubicle on: Apr 19 2011
Score 50%

And I'm back, thanks for responding...again :)

Nothing immediately apparent there so I might need to grab a copy of OpenSuse to see what's going on...I'll report any progress here.

I assume /usr/bin/X11 is a symlink to /usr/bin...so you don't actually have to versions of the script installed?


 Re: Re: Re: Re: Re: Re: The problem "cannot execut

 by kubicle on: Apr 26 2011
Score 50%

I finally managed to find the time to check out opensuse 11.4, and I noticed similar errors with the menu...so I think that confirms the issue.

This is not the same "bug" as the one fixed with the "-c" option, though, and so far seems to be present in opensuse only (the few other distros I've tried it with work as expected with either kdesu or kdesudo...with KDE 4.6.2).

I'm not that familiar with the internals of opensuse, so it may take me a while to get this one fixed. But I'll keep it open and try to dig in a bit more.


 2.7 on KDE 4.6.1 Fedora 14

 by Dominor on: Apr 19 2011
Score 50%

I installed today Root Action Servicemenu 2.7, in Fedora 14 x86_64 with KDE SC 4.6.1 through GHNS. It failed due to not being able to find the SERVICEMENUDIR. The error is from the installKDE4.sh script, which I assume is run in the automated install process. In order to make it run successfully, I added the line 'mkdir $SERVICEMENUDIR' before 'install -m 644 $SCRIPTDIR/Root_Actions_$VERSION/dolphin-KDE4/*.desktop $SERVICEMENUDIR || exit 1'.
After that, the automated install process completes successfully and I can, for example, edit a root only text file through kdesu.

Reply to this


 Re: 2.7 on KDE 4.6.1 Fedora 14

 by kubicle on: Apr 19 2011
Score 50%

Thanks for the report, will fix in the next update.

I'll add a test for the directory and create if necessary.

Reply to this


 Just stopped by to say...

 by Brutus180 on: Apr 28 2011
Score 50%

Thanks! This is supremely useful and has made using KDE so much easier. Especially for a Unity/GNOME 3 refuge :)

As for doing good; that is one of the professions which is full. Moreover I have tried it fairly and, strange as it may seem, am satisfied that it does not agree with my constitution.
Henry David Tho

Reply to this


 only manual install

 by krzywda on: Apr 5 2012
Score 50%

Hy script is very usefull but not instal with dolpin settings - add services, script in list is checked as instaled but not work, maunal install works fine.
(in kubuntu 11.10 )

Reply to this


 Re: only manual install

 by kubicle on: Apr 5 2012
Score 50%

Do you have "ruby" installed?

GHNS installation (in dolphin settings) requires ruby to run the install script.

Reply to this


 Re: Re: only manual install

 by grekpg on: Apr 6 2012
Score 50%

its trure - i check in other kubuntu comuter if i first install ruby auto install from dolphin work.
So is possible to check ruby state ? )or auto install before install plugin ?) - in default kubuntu distro users dont have instaled ruby so when try install have big error - big beacose there any error message- click install, script is show as instaled but not work. Thanks for script its very usefull !

Reply to this


 Re: Re: Re: only manual install

 by kubicle on: Apr 6 2012
Score 50%

Unfortunately, there is not much that I can do about that. I could add a test for ruby in the installer script, but the script won't run without ruby (so it wouldn't work).

I'll update the information on the top of the page to include the ruby requirement. The IMHO best solution would be to include ruby as a "recommended" dependency to dolphin (it's currently only a "suggested" dependency in kubuntu...which means it isn't installed by default)

Reply to this


 Trash but not Delete?

 by Xplorer4x4 on: Jun 28 2012
Score 50%

Is it possible to add a root action to move files to the users trash rather then delete them?

Regardless, nice work. This is very useful!

Reply to this


 Re: Trash but not Delete?

 by kubicle on: Sep 11 2012
Score 50%

Sorry for the delayed response, I don't seem to get email notifications of new comments anymore (which I'll have to investigate when I have the time)

To your question:
It might be possible (in theory), but there are a few obstacles to a clean implementation, like permissions (permission/ownership of files would have to be changed to the user or the trash could not be cleaned, but that wouldn't help restoring the files).

Moving to root's trash would be somewhat trivial, but I originally decided against that.

I might look into a trash option for the next version, possibly as a configurable option (I did plan to include more configurability in the long run), can't promise anything though.

Reply to this



 by Sweyn78 on: Aug 25 2012
Score 50%

Why Konqueror instead of Dolphin?

Reply to this


 Re: Konqueror?

 by kubicle on: Sep 11 2012
Score 63%

It should use the default file manager (set in KDE settings, more precisely...the default application set to handle inode/directory mime type)

If one is not found (or xdg-mime is not installed), it defaults to dolphin as a fallback if available and konqueror should only be the "last resort" (if dolphin is not available).

Can you elaborate a bit on when and how you see the behavior (opening konqueror instead of dolphin)

Reply to this


 Re: Re: Konqueror?

 by Sweyn78 on: Sep 11 2012
Score 50%

I just installed every package with xdg in it (well, except for the openbox one) and it's working perfectly now. :)
Many thanks. :)

Reply to this

goto page: prev   1  2  3  4  5  6  7  8  9  10  11  12 

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.