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)
4 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
4 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
openDesktop.org :
nexus3factorial
4 years ago
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
6 years ago
Report
agodumov
6 years ago
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
6 years ago
Report
agodumov
6 years ago
ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu
The simple root actions menu seems to be working now.
Report
agodumov
6 years ago
Report
pejakm
6 years ago
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
6 years ago
Report
pejakm
6 years ago
Report
pejakm
8 years ago
Report
kax
8 years ago
(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
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
(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
(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
is there a possiblilty you implement also 'rename as root'?
i'd appreciate that greatly.
-incredion
Report
pejakm
8 years ago
Report
barjac
8 years ago
This seems to be a bug.
Report
pejakm
8 years ago
Report
pejakm
8 years ago
Report
creative
8 years ago
X-KDE-Submenu[ar]=قائمة الجزر
Name[ar]=امسح كـ جزر
Name[ar]=عدل كـ جزر
Name[ar]=افتح كـ جزر
Name[ar]=شغل كـ جزر
Report
brdn25
8 years ago
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
Ελληνική Μετάφραση
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
Name[uk]=Видалити як root
Name[uk]=Редагувати як root
Name[uk]=Відкрити як root
Name[uk]=Виконати як root
Report
hakova
9 years ago
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
9 years ago
Kind regards! :)
Report