summaryrefslogtreecommitdiffstats
path: root/libkonq/servicemenus
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-21 11:14:54 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-21 11:14:54 -0500
commitbe73d75739e41342bfded44f2f71072664db15f1 (patch)
tree0c6a3f05c22977dcf0cf6d9f46c294f0ac133cc2 /libkonq/servicemenus
parentfb6cafce6abb2546e7b7550859bd1931ba6b74d8 (diff)
downloadtdebase-be73d75739e41342bfded44f2f71072664db15f1.tar.gz
tdebase-be73d75739e41342bfded44f2f71072664db15f1.zip
Add edit as root service menu to libkonq
Diffstat (limited to 'libkonq/servicemenus')
-rw-r--r--libkonq/servicemenus/CMakeLists.txt14
-rw-r--r--libkonq/servicemenus/edit-as-root.desktop12
2 files changed, 26 insertions, 0 deletions
diff --git a/libkonq/servicemenus/CMakeLists.txt b/libkonq/servicemenus/CMakeLists.txt
new file mode 100644
index 000000000..6d54b0ab0
--- /dev/null
+++ b/libkonq/servicemenus/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2013 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing.net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under the GPL >= 2
+#
+#################################################
+
+install( FILES
+ edit-as-root.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
diff --git a/libkonq/servicemenus/edit-as-root.desktop b/libkonq/servicemenus/edit-as-root.desktop
new file mode 100644
index 000000000..e3df17006
--- /dev/null
+++ b/libkonq/servicemenus/edit-as-root.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+ServiceTypes=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=tdesu "kwrite" "%U"