Commit f5f967ad authored by Paul Worrall's avatar Paul Worrall Committed by Albert Astals Cid
Browse files

Add global shortcut to launch kcalc

Adding the 'Launch (1)' shortcut key which Qt5 maps to XF86Calculator

BUG: 353596
parent ade20329
Pipeline #235062 passed with stage
in 54 seconds
......@@ -159,6 +159,10 @@ install( PROGRAMS org.kde.kcalc.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install( FILES org.kde.kcalc.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install( FILES kcalc.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install( FILES kcalcrc.upd DESTINATION ${KDE_INSTALL_DATADIR}/kconf_update)
install( DIRECTORY DESTINATION "${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel" )
install(
CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${KDE_INSTALL_FULL_APPDIR}/org.kde.kcalc.desktop\" \"\$ENV{DESTDIR}${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel/org.kde.kcalc.desktop\")"
)
ki18n_install(po)
if (KF5DocTools_FOUND)
......
......@@ -193,3 +193,6 @@ Type=Application
StartupNotify=true
Categories=Qt;KDE;Utility;Calculator;X-KDE-Utilities-Desktop;
X-DBUS-ServiceName=org.kde.kcalc.desktop
# Qt5 maps the Calculator key to Key_Launch1, that may change with Qt6 (QBUG-25261)
X-KDE-Shortcuts=Launch (1)
Supports Markdown
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