Commit 63a6340a authored by Yunhe Guo's avatar Yunhe Guo

Add global shortcut

Summary:
The "Tools" key is function key in some laptops. In ThinkPad + Windows, when you press that key, it will open Control Panel or Windows 10 Settings. But in Linux, it does nothing. So I think it can be a good shortcut for System Settings because no other software use it.

{F8309275}

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: ngraham, davidre, ognarb, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29625
parent c3debf5f
...@@ -39,4 +39,8 @@ install( TARGETS systemsettings5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) ...@@ -39,4 +39,8 @@ install( TARGETS systemsettings5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES systemsettings.kcfg DESTINATION ${KDE_INSTALL_DATADIR}/systemsettings ) install( FILES systemsettings.kcfg DESTINATION ${KDE_INSTALL_DATADIR}/systemsettings )
install( FILES systemsettingsui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/systemsettings ) install( FILES systemsettingsui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/systemsettings )
install( PROGRAMS kdesystemsettings.desktop systemsettings.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) install( PROGRAMS kdesystemsettings.desktop systemsettings.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( DIRECTORY DESTINATION "${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel" )
install(
CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${KDE_INSTALL_FULL_APPDIR}/systemsettings.desktop\" \"\$ENV{DESTDIR}${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel/systemsettings.desktop\")"
)
install(FILES org.kde.systemsettings.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) install(FILES org.kde.systemsettings.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
...@@ -4,6 +4,7 @@ Icon=preferences-system ...@@ -4,6 +4,7 @@ Icon=preferences-system
Type=Application Type=Application
X-DocPath=systemsettings/index.html X-DocPath=systemsettings/index.html
X-KDE-StartupNotify=true X-KDE-StartupNotify=true
X-KDE-Shortcuts=Tools
OnlyShowIn=KDE; OnlyShowIn=KDE;
GenericName=System Settings GenericName=System Settings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment