summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Heidelbach <[email protected]>2018-01-06 13:13:48 +0100
committerMichael Heidelbach <[email protected]>2018-01-18 15:33:41 +0100
commit2e557f4065f451161f7bc792f45f3905d22c9684 (patch)
tree8135235f80d425d57c19aac0e3fd8e80851bac5a
parent74b03bf0317fc06d2f78ba5c1e7efa9147203cbf (diff)
Added service menu
Summary: BUG: 388559 Limitation: - Files must be presented in the same dolphin pane Reviewers: mlaurent Reviewed By: mlaurent Subscribers: broulik, safaalfulaij, mlaurent, ngraham Differential Revision: https://phabricator.kde.org/D9698
-rw-r--r--CMakeLists.txt1
-rw-r--r--servicemenus/CMakeLists.txt2
-rw-r--r--servicemenus/kompare.desktop11
3 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index df6f854..26d99f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,6 +62,7 @@ add_subdirectory( libdialogpages )
add_subdirectory( komparenavtreepart )
add_subdirectory( komparepart )
add_subdirectory( pics )
+add_subdirectory( servicemenus )
set(kompare_SRCS
main.cpp
diff --git a/servicemenus/CMakeLists.txt b/servicemenus/CMakeLists.txt
new file mode 100644
index 0000000..7884112
--- /dev/null
+++ b/servicemenus/CMakeLists.txt
@@ -0,0 +1,2 @@
+install(FILES kompare.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus)
diff --git a/servicemenus/kompare.desktop b/servicemenus/kompare.desktop
new file mode 100644
index 0000000..a6afe13
--- /dev/null
+++ b/servicemenus/kompare.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+ServiceTypes=KonqPopupMenu/Plugin
+Actions=kompare
+Type=Service
+MimeType=inode/directory;application/octet-stream;
+X-KDE-RequiredNumberOfUrls=2
+
+[Desktop Action kompare]
+Name=Compare Files
+Icon=kompare
+Exec=kompare -c %U >/dev/null