Simple Root Actions Menu
Dolphin Service Menus
Score 80%
Description:

This is menu that I use, I thought it would be useful for some people so I decided to share it.

It is very simple, it contains 8 menu entries:
-delete as root ("sram_d.desktop", for all files and folders)
-edit as root ("sram_e.desktop", for all text files)
-open as root ("sram_o.desktop", for all folders)
-run as root ("sram_r.desktop", for all executable files)
-backup as root ("sram_b.desktop", for all files)
-rename as root ("sram_rn.desktop", for all files)
-chmod as root ("sram_cm.desktop", for all files and folders)
-chown as root ("sram_co.desktop", for all files and folders)

From version 1.3 "Simple Root Actions Menu" comes packed within shell script file - Installer script. The installer gives you ability to define various parameters of the installation, like whether you want to install the menu for konqueror or dolphin, what text editor to use, whether to use kdesu or gksu, etc. Version 2 (and greater) supports KDE 4. Version 3 (and greater) dropped support for KDE3.

Installation

Download and unpack the content and run "sram_install" in your shell ("./sram_install")
Follow menu instructions.
Or you can use operands "-i" for installation or "-u" for uninstallation directly.

Be sure to read README file first!!!


Translations

You can send me translations to your language if you want, so I can update the menus. Also comments or suggestions are welcome.

Current translations:

* Arabic (by Muhammad Negm)
* Bosnian
* Bulgarian (by chichovoto)
* Catalan (by Dani Parcerisas)"
* Chinese (by rickz)
* Croatian
* Czech (by mikefly)
* Dutch (by Jelle Van de Velde)
* Farsi (by Bardia Daneshvar)
* French (by Bruno Patri)
* Friulian (by Cristiano Dri)
* Galician (by kax)
* German (by Andreas Butti)
* Greek (by Alexis Panagiotopoulos)
* Hungarian (by zsohu)
* Italian (by Marco Rocca)
* Japanese (by Yuya Tanaka)
* Polish (by Tomasz Dunal)
* Portuguese (by Victor Cardoso)
* Portuguese - Brazilian (by Alexey Antonyuk)
* Russian (by Alexey Antonyuk)
* Slovenian (by Mihael Simonic)
* Serbian
* Spanish (by figue)
* Swedish (by Jan-Helge Fagerström)
* Turkish (by Hakan Duran)
* Ukrainian (by Sergiy Yaremenko)

Thanks to all translators!

--------------------------------------
Strings for translation:

X-KDE-Submenu[xx]=root menu
Name[xx]=Delete as root
Name[xx]=Edit as root
Name[xx]=Open as root
Name[xx]=Run as root
Name[xx]=Backup as root
Name[xx]=Rename as root

("xx" is your language code abbreviation)
--------------------------------------

Notes

(none for now)
Last changelog:

3 years ago

3.0.0 - Sunday, 6. October 2013

+ Dropped KDE3 support
+ Added chmod and chown service menus
+ Different naming sheme (As root -> _do some action_)
+ Automatic detection of running KDE session
+ Added start up arguments (start menu with "./sram_istall -s", as now "./sram_install" presents you a list of available arguments)
+ Removed deprecated third option from prefix setup menu (you can now easily dump all service menus to a desired path with a "./sram_install -i ")
+ Default file manager and text editor are now "kde-open"
+ Executables now only use "kdesu" ("sudo" is too dangerous)
+ Removed sudo setup
+ Run as root now opens a command in a terminal emulator
+ Added Catalan translation (by Dani Parcerisas)

2.2.4 - Monday, 25. April 2011

+ Fixed bug in interface selection introduced in v2.2.0 (only kdesu could be selected)

2.2.3 - Sunday, 24. April 2011

+ Fixed kdesu for KDE SC 4.6 (added "-c" flag)
+ Added semicolons in "Actions" arrays
+ Added Serbian Ijekavian

2.2.2 - Saturday, 13. February 2010

+ Fixed mistake in German translation (thanks to Arnd Diestelhorst)
+ Added Galician translation (by kax)
+ Corrected French translation (by Bruno Patri)

2.2.1 - Saturday, 15. August 2009

+ Fixed error in rename menu execution command
+ Added Chinese translation (by rickz)

2.2.0 - Friday, 7. August 2009

+ Added two new menu entries: "Backup as root" and "Rename as root"
+ Added warning question in "Delete as root" menu (see README file!)
+ Installation script now have ability to directly install defaults/uninstall via -i/-u operands
+ Some tweaks inside installation script - optimisation
+ Menu files themself are now iconofied

2.1.1 - Tuesday, 4. August 2009

+ Added Greek (by Alexis Panagiotopoulos), Farsi (by Bardia Daneshvar) and Arabic (by Muhammad Negm) translations
+ Added installation date log to the menu files

2.1.0 - Tuesday, 13. January 2009

+ Automatical KDE version checker (KDE version chooser will display only if both KDE 3 and KDE 4 are found)
+ Added "x-trash.desktop" and "x-gettext.desktop" file types to edit menu
+ Serbian Latin locale fix for KDE 3
+ Added Ukrainian translation (by Sergiy Yaremenko)

2.0.0 - Wednesday, 7. January 2009

+ Installation script now supports KDE4 service menus
+ minor code cleanup, fixes and eyecandy improvements

1.4.2 - Tuesday, 18. November 2008

+ Fix: nasty bug with Service Types (introduced in version 1.4.1)
+ Added Slovenian translation (by Mihael Simonic)

1.4.1 - Monday, 17. November 2008

+ Added translations: Friulian (by Cristiano Dri) and Czech (by mikefly)
+ Minor changes to service menus (added "Type=Service" lines)

1.4.0 - Thursday, 13. March 2008

+ Fix: installation script now works correctly if the KDE prefix dir is other than /usr

1.3.1 - Monday, 14. January 2008

+ Added translations: Portuguese (by Victor Cardoso), Portuguese - Brazilian (by Alexey Antonyuk) and Russian (by Alexey Antonyuk)
+ Fix: "Open as root" menu fix for folders with empty space in their name

1.3 - Wednesday, 9. January 2008

+ First installer release
+ Added translations: French (by Jelle Van de Velde), Italian (by Marco Rocca) and Turkish (by Hakan Duran)
+ Small improvements to service menu exec commands
+ Small improvements for use with dolphin service menu
+ Change: "Open as root" menu icon changed from "folder_yellow" to "folder_open"

1.2 - Thursday, 3. January 2008

+ Added translations: Bulgarian (by chichovoto), Polish (by Tomasz Dunal), Dutch (Jelle Van de Velde) and Japanese (by Yuya Tanaka)

1.1 - Wednesday, 2. January 2008

+ Added translations: German (by Andreas Butti), Hungarian (by zsohu), Spanish (by figue) and Swedish (by Jan-Helge Fagerström)

1.0 - Tuesday, 1. January 2008

- First public release

nexus3factorial

4 years ago

This is my translation to Catalan:


srm_d.desktop:
[Desktop Action su_del]
Name=Delete as root
Name[ca]=Esborra com a root

srm_e.desktop:
[Desktop Action su_edit]
Name=Edit as root
Name[ca]=Edita com a root

srm_o.desktop:
[Desktop Action su_open]
Name=Open as root
Name[ca]=Obre com a root

srm_r.desktop:
[Desktop Action su_run]
Name=Run as root
Name[ca]=Executa com a root

Thanks!

Report

pejakm

5 years ago

Try reinstalling it. And what happens if you run "kdesu kwrite" in your konsole?

Report

agodumov

5 years ago

If I do that i get an error message that says that this command (kdesu) is not found. I searched for kdesu package in Debian but couldn't fine one. "whereis kdesu" gave the following result:


alexander@debian:~$ whereis kdesu
kdesu: /usr/include/kdesu /usr/share/man/man1/kdesu.1.gz

alexander@debian:~$ ls /usr/include/kdesu
client.h defaults.h kdesu_export.h process.h ssh.h stub.h su.h

Report

pejakm

5 years ago

Well, there's your problem (not related to the sram service menu). Try reinstall kdebase-runtime package, I think in Debian this contains kdesu.

Report

agodumov

5 years ago

Thanks for the help. It appears that kdesu is installed in my system but the binary was not in /usr/bin. This fixed my problems:

ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu

The simple root actions menu seems to be working now.

Report

agodumov

5 years ago

Hi, I installed the simple root actions service menu on KDE 4.6.5 on Debian Unstable. Editting files as root and opening a file manager as root works as expected however i cannot delete files or rename them - i receive a warnign if i am sure about deleting the file but after i click "OK" it doesn't ask me about a password and the file is not deleted.

Report

pejakm

5 years ago

Hi! First make sure you have the latest version of sram installed.
Have you tried checked "Don't ask me again" checkbox when dialog appears? This should create file "$HOME/.kde4/share/config/sram_d". If you already have this file, try deleting it, and test the deletion again.

Report

agodumov

5 years ago

Thanks for the comment. I selected the option to no longer ask me about whether i'm sure and now it indeed doesn't ask me. However still nothing happens - i am not prompted for password and the file is not deleted. Also i don't have a file $HOME/.kde4/share/config/sram_d . The settings directory for KDE in Debian is just .kde not .kde4 however i have no $HOME/.kde/share/config/sram_d file. I have downloaded sram from here which i version 2.2.4. Are there any specific dependencies which i may have missed?

Report

pejakm

6 years ago

Sorry everyone for long time no update. I had this version prepared 4 months ago, but forgot to upload it.

Report

pejakm

7 years ago

Thanks, your translations will be added soon. ;)

Report

kax

7 years ago

(menu)X-KDE-Submenu[gl]=Menu de root
(delete)Name[gl]=Eliminar coma root
(edit)Name[gl]=Modificar coma root
(open)Name[gl]=Abrir coma root
(run)Name[gl]=Executar coma root
(backup)Name[gl]=Cópia de segurança coma root
(rename)Name[gl]=Renomear coma root

Report

lide

8 years ago

Congratulation for this piece of code!
But let me suggest you a new translation that seems to me more correct:

(menu)X-KDE-Submenu[fr]=menu root
(delete)Name[fr]=Supprimer en tant que root
(edit)Name[fr]=Editer en tant que root
(open)Name[fr]=Ouvrir en tant que root
(run)Name[fr]=Executer en tant que root
(backup)Name[fr]=Sauvegarder en tant que root
(rename)Name[fr]=Renommer en tant que root

Thank you

Report

bruno666

8 years ago

(menu)X-KDE-Submenu[fr]=menu root
(delete)Name[fr]=Supprimer en tant que root
(edit)Name[fr]=Éditer en tant que root
(open)Name[fr]=Ouvrir en tant que root
(run)Name[fr]=Exécuter en tant que root
(backup)Name[fr]=Sauvegarder en tant que root
(rename)Name[fr]=Renommer en tant que root

is the correct French translation

Report

rickz

8 years ago

(menu)X-KDE-Submenu[cn]=root用户菜单
(delete)Name[cn]=以root用户删除
(edit)Name[cn]=以root用户编辑
(open)Name[cn]=以root用户打开
(run)Name[cn]=以root用户运行
(backup)Name[cn]=以root用户备份
(rename)Name[cn]=以root用户重命名

Report

incredion

8 years ago

nice work done!

is there a possiblilty you implement also 'rename as root'?

i'd appreciate that greatly.

-incredion

Report

pejakm

8 years ago

Done! :)

Report

barjac

8 years ago

Using SRAM to view /var/log/dmesg does not work as the "Edit as root" context menu option is missing, however if a copy is made of the file with the same owner/permissions and an extension (e.g. dmesg.log) then SRAM does display the edit option.
This seems to be a bug.

Report

pejakm

8 years ago

No, it's not a bug. Your system can't see dmesg as text file (for some reason), but it can see dmesg.log as this extension is defined in SRAM's. ;)

Report

pejakm

8 years ago

Thanks people, I'll add new translations as soon as can. :)

Report

creative

8 years ago

Strings for translation: Arabic

X-KDE-Submenu[ar]=قائمة الجزر
Name[ar]=امسح كـ جزر
Name[ar]=عدل كـ جزر
Name[ar]=افتح كـ جزر
Name[ar]=شغل كـ جزر

Report

brdn25

8 years ago

X-KDE-Submenu[fa]=منوی ریشه
Delete :
Name[fa]=با root پاک کن
Edit :
Name[fa]=با root ویرایش کن
Open :
Name[fa]=با root باز کن
Run :
Name[fa]=با root اجرا کن

Thank You
Bardia Daneshvar

Report

apanagio

8 years ago

Greek Translation
Ελληνική Μετάφραση

X-KDE-Submenu[el]=επιλογές root
Name[el]=Διαγραφή ως root
Name[el]=Επεξεργασία ως root
Name[el]=Άνοιγμα ως root
Name[el]=Εκτέλεση ως root

Keep up the good work
Alexis

Report

yaserg

8 years ago

X-KDE-Submenu[uk]=root Меню
Name[uk]=Видалити як root
Name[uk]=Редагувати як root
Name[uk]=Відкрити як root
Name[uk]=Виконати як root

Report

hakova

8 years ago

Hey pejakm,

I am your kind Turkish translator. My name should read Hakan Duran, *not* Hasan Duran. I appreciate if you can correct it.

Thanks,

Hakan

Report

pejakm

8 years ago

I apologize. It's corrected on this site, it will also be corrected in the install script in the next version.

Kind regards! :)

Report

3 years ago

3.0.0 - Sunday, 6. October 2013

+ Dropped KDE3 support
+ Added chmod and chown service menus
+ Different naming sheme (As root -> _do some action_)
+ Automatic detection of running KDE session
+ Added start up arguments (start menu with "./sram_istall -s", as now "./sram_install" presents you a list of available arguments)
+ Removed deprecated third option from prefix setup menu (you can now easily dump all service menus to a desired path with a "./sram_install -i ")
+ Default file manager and text editor are now "kde-open"
+ Executables now only use "kdesu" ("sudo" is too dangerous)
+ Removed sudo setup
+ Run as root now opens a command in a terminal emulator
+ Added Catalan translation (by Dani Parcerisas)

2.2.4 - Monday, 25. April 2011

+ Fixed bug in interface selection introduced in v2.2.0 (only kdesu could be selected)

2.2.3 - Sunday, 24. April 2011

+ Fixed kdesu for KDE SC 4.6 (added "-c" flag)
+ Added semicolons in "Actions" arrays
+ Added Serbian Ijekavian

2.2.2 - Saturday, 13. February 2010

+ Fixed mistake in German translation (thanks to Arnd Diestelhorst)
+ Added Galician translation (by kax)
+ Corrected French translation (by Bruno Patri)

2.2.1 - Saturday, 15. August 2009

+ Fixed error in rename menu execution command
+ Added Chinese translation (by rickz)

2.2.0 - Friday, 7. August 2009

+ Added two new menu entries: "Backup as root" and "Rename as root"
+ Added warning question in "Delete as root" menu (see README file!)
+ Installation script now have ability to directly install defaults/uninstall via -i/-u operands
+ Some tweaks inside installation script - optimisation
+ Menu files themself are now iconofied

2.1.1 - Tuesday, 4. August 2009

+ Added Greek (by Alexis Panagiotopoulos), Farsi (by Bardia Daneshvar) and Arabic (by Muhammad Negm) translations
+ Added installation date log to the menu files

2.1.0 - Tuesday, 13. January 2009

+ Automatical KDE version checker (KDE version chooser will display only if both KDE 3 and KDE 4 are found)
+ Added "x-trash.desktop" and "x-gettext.desktop" file types to edit menu
+ Serbian Latin locale fix for KDE 3
+ Added Ukrainian translation (by Sergiy Yaremenko)

2.0.0 - Wednesday, 7. January 2009

+ Installation script now supports KDE4 service menus
+ minor code cleanup, fixes and eyecandy improvements

1.4.2 - Tuesday, 18. November 2008

+ Fix: nasty bug with Service Types (introduced in version 1.4.1)
+ Added Slovenian translation (by Mihael Simonic)

1.4.1 - Monday, 17. November 2008

+ Added translations: Friulian (by Cristiano Dri) and Czech (by mikefly)
+ Minor changes to service menus (added "Type=Service" lines)

1.4.0 - Thursday, 13. March 2008

+ Fix: installation script now works correctly if the KDE prefix dir is other than /usr

1.3.1 - Monday, 14. January 2008

+ Added translations: Portuguese (by Victor Cardoso), Portuguese - Brazilian (by Alexey Antonyuk) and Russian (by Alexey Antonyuk)
+ Fix: "Open as root" menu fix for folders with empty space in their name

1.3 - Wednesday, 9. January 2008

+ First installer release
+ Added translations: French (by Jelle Van de Velde), Italian (by Marco Rocca) and Turkish (by Hakan Duran)
+ Small improvements to service menu exec commands
+ Small improvements for use with dolphin service menu
+ Change: "Open as root" menu icon changed from "folder_yellow" to "folder_open"

1.2 - Thursday, 3. January 2008

+ Added translations: Bulgarian (by chichovoto), Polish (by Tomasz Dunal), Dutch (Jelle Van de Velde) and Japanese (by Yuya Tanaka)

1.1 - Wednesday, 2. January 2008

+ Added translations: German (by Andreas Butti), Hungarian (by zsohu), Spanish (by figue) and Swedish (by Jan-Helge Fagerström)

1.0 - Tuesday, 1. January 2008

- First public release

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
3.0.0
updated Oct 06 2013
added Jan 01 2008
downloads today
1
page views today 0