Bug 353596

Summary: Kcalc should be started when pressing calculator keyboard button
Product: [Applications] kcalc Reporter: Marius Kotsbak <marius>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate, nroycea+kde, plasma-bugs, rplanchuelo
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 22.12
Sentry Crash Report:

Description Marius Kotsbak 2015-10-06 08:50:06 UTC
It would be nice if Kcalc had been started when pressing calculator keyboard button.

Reproducible: Always

Steps to Reproduce:
1. Press calculator keyboard button

Actual Results:  
KCalc does not start

Expected Results:  
KCalc should start
Comment 1 Marius Kotsbak 2015-10-06 09:14:51 UTC
This could be solved by adding something like this:

[Data_1_2Actions0]
CommandURL=kde4-kcalc.desktop
Type=MENUENTRY

[Data_1_2Conditions]
Comment=
ConditionsCount=0

[Data_1_2Triggers]
Comment=Simple_action
TriggersCount=1

[Data_1_2Triggers0]
Key=Launch (1)
Type=SHORTCUT
Uuid={35583608-4c32-4a18-a637-ecb886045959}

to /usr/share/khotkeys/defaults.khotkeys
Comment 2 vindicator 2017-01-08 14:19:01 UTC
I am finding this issue as well after a clean install of archlinux along with kcalc.

Settings->Shortcuts->"Global Shortcuts"->"KDE Daemon"->Calculator IS set to "Launch (1)" which IS correct, but still won't launch.

Adding in "Custom Shortcuts", Edit->New->"Global Shortcut"->Command/URL using "Launch (1)" and running "kcalc" DOES work.
Comment 3 Rober 2017-10-12 18:42:55 UTC
I'm trying to assign a hotkey to run kcal directly but it don't work (it works actualy for others app)

Similar to others guys
Comment 4 Nate Graham 2022-07-20 17:15:00 UTC
This would need to be defined in KCalc's own .desktop file; moving there.
Comment 5 Bug Janitor Service 2022-08-21 14:39:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/43
Comment 6 Bug Janitor Service 2022-08-29 15:48:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/44
Comment 7 Albert Astals Cid 2022-09-20 20:53:43 UTC
Git commit f5f967adb34b3c7eb03c0481294f56e51b4bf27d by Albert Astals Cid, on behalf of Paul Worrall.
Committed on 20/09/2022 at 20:52.
Pushed by aacid into branch 'master'.

Add global shortcut to launch kcalc

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

M  +4    -0    CMakeLists.txt
M  +3    -0    org.kde.kcalc.desktop

https://invent.kde.org/utilities/kcalc/commit/f5f967adb34b3c7eb03c0481294f56e51b4bf27d