Bug 458051

Summary: Add ability to create global shortcut for DBUS commands in kcm_keys UI
Product: [Applications] systemsettings Reporter: Zhanibek Adilbekov <zhanibek.adilbekov>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, nicolas.fella, zhanibek.adilbekov
Priority: NOR Keywords: usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=455444
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Zhanibek Adilbekov 2022-08-18 22:31:33 UTC
In KHotKeys we could add custom shortcuts to execute user defined dbus commands.

As pointed out by Nate Graham in https://bugs.kde.org/show_bug.cgi?id=455444 KHotKeys module is going to retire and already disabled in Wayland session.

It would be great to have something similar in kcm_keys module's UI instead of using script files.
Comment 1 Nicolas Fella 2022-08-18 22:51:02 UTC
I do not think we need a special way to add DBus commands. If we had the ability to add arbitrary commands (we kind of do but it's very hidden) then adding DBus calls would be trivial to do using qdbus or dbus-send.

See also https://bugs.kde.org/show_bug.cgi?id=456951
Comment 2 Zhanibek Adilbekov 2022-08-18 23:11:56 UTC
(In reply to Nicolas Fella from comment #1)
> I do not think we need a special way to add DBus commands. If we had the
> ability to add arbitrary commands (we kind of do but it's very hidden) then
> adding DBus calls would be trivial to do using qdbus or dbus-send.
> 
> See also https://bugs.kde.org/show_bug.cgi?id=456951

I was thinking of an UI something between an app selection dialog and a DBus browser. but that involves a lot of labor.

So I agree https://bugs.kde.org/show_bug.cgi?id=456951 is quite a solution. In any case, only advanced users add DBus commands. And they will certainly be able to add them using arbitrary commands.

I will close this ticket. Thanks