]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Create a global launch shortcut (Meta+E)
authorNate Graham <nate@kde.org>
Sun, 17 Mar 2019 16:05:46 +0000 (10:05 -0600)
committerNate Graham <nate@kde.org>
Sun, 17 Mar 2019 22:12:18 +0000 (16:12 -0600)
Summary:
This patch adds a global shortcut ({key Meta E}) to launch Dolphin, just like Konsole has.

FEATURE: 405302
FIXED-IN: 19.04.0

Test Plan:
1. Apply patch and reboot, or create and log into a new user
2. Hit {key Meta E}
3. Dolphin opens!

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: hallas, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19831

CMakeLists.txt
dolphin.khotkeys [new file with mode: 0644]

index 7bd27a7f7896c5f0a36b48b257d72c9411517a22..72ab75d365b573ef633e7c257520a57b24bc0345 100644 (file)
@@ -142,5 +142,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.dolphin.FileManager1.service
 
 install( FILES dolphin.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
 
 
 install( FILES dolphin.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
 
+install( FILES dolphin.khotkeys DESTINATION ${KDE_INSTALL_DATADIR}/khotkeys )
+
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff --git a/dolphin.khotkeys b/dolphin.khotkeys
new file mode 100644 (file)
index 0000000..ae6fb02
--- /dev/null
@@ -0,0 +1,33 @@
+[Main]
+ImportId=dolphin
+Version=2
+Autostart=true
+Disabled=false
+
+[Data]
+DataCount=1
+
+[Data_1]
+Comment=Global keyboard shortcut to launch Dolphin
+Enabled=true
+Name=Launch Dolphin
+Type=MENUENTRY_SHORTCUT_ACTION_DATA
+
+[Data_1Actions]
+ActionsCount=1
+
+[Data_1Actions0]
+CommandURL=org.kde.dolphin.desktop
+Type=MENUENTRY
+
+[Data_1Conditions]
+Comment=
+ConditionsCount=0
+
+[Data_1Triggers]
+Comment=Simple_action
+TriggersCount=1
+
+[Data_1Triggers0]
+Key=Meta+E
+Type=SHORTCUT