Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KCalc
Commits
f5f967ad
Commit
f5f967ad
authored
Aug 29, 2022
by
Paul Worrall
Committed by
Albert Astals Cid
Sep 20, 2022
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f5f967ad
...
...
@@ -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
)
...
...
org.kde.kcalc.desktop
View file @
f5f967ad
...
...
@@ -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)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment