Bug 483039

Summary: Can't set new shortcuts to activate widgets from Shortcuts KCM
Product: [Applications] systemsettings Reporter: kimimaru
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, mj.akarsh, nate, nicolas.fella, postix
Priority: NOR Keywords: qt6
Version: 6.0.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=448609
Latest Commit: Version Fixed In:
Attachments: Shows keyboard shortcuts assigned to activate widgets in System Settings
No Configure Keyboard Shortcuts option for Audio widget
No Configure Keyboard Shortcuts available when right-clicking audio widget
kglobalshortcutsrc
plasma-org.kde.plasma.desktop-appletsrc

Description kimimaru 2024-03-09 21:22:14 UTC
Created attachment 166830 [details]
Shows keyboard shortcuts assigned to activate widgets in System Settings

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open System Settings and go to Keyboard > Shortcuts
2. Select plasmashell
3. Assign keyboard shortcuts to some widgets

OBSERVED RESULT
Pressing the assigned key combination doesn't activate the widget.

EXPECTED RESULT
Pressing the assigned key combination should activate the widget. In the screenshot, I have set Ctrl+Alt+S to Activate Audio Volume Widget, but it doesn't do anything. Same with Activate Bluetooth Widget, which is set to Ctrl+Alt+B.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS with kernel 6.7.9-arch1-1 (64-bit)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
I'm experiencing the same problem on both the X11 and Wayland sessions. I have reset the settings to default via the button at the bottom, and the problem persists.
Comment 1 Nate Graham 2024-03-11 23:55:32 UTC
Does it work if you set the shortcut from the widgets' own config dialogs?
Comment 2 kimimaru 2024-03-12 03:56:43 UTC
Created attachment 167009 [details]
No Configure Keyboard Shortcuts option for Audio widget
Comment 3 kimimaru 2024-03-12 03:59:40 UTC
(In reply to Nate Graham from comment #1)
> Does it work if you set the shortcut from the widgets' own config dialogs?

I don't see an option to set a keyboard shortcut from the Audio or Bluetooth widgets. Screenshots attached.
Comment 4 kimimaru 2024-03-12 04:00:06 UTC
Created attachment 167010 [details]
No Configure Keyboard Shortcuts available when right-clicking audio widget
Comment 5 kimimaru 2024-03-12 04:01:32 UTC
I believe the bug started after I cleaned up unused Plasma 5 packages a few days after upgrading to Plasma 6.
Comment 6 Nicolas Fella 2024-03-12 19:11:04 UTC
You can configure those shortcuts by going to the system tray settings > Entries
Comment 7 kimimaru 2024-03-12 19:43:57 UTC
Thank you! Yes, it works when I configure them through the system tray entries.

What's the purpose of having these two ways of adding these shortcuts?
Comment 8 Nate Graham 2024-03-13 17:44:11 UTC
The Shortcuts page in System Settings is a centralized place to see and change all the shortcuts. Can't hurt to give people multiple ways to find the feature.

Anyway, I can only sort of reproduce the issue. Setting widget shortcuts form the Shortcuts KCM works for me for widgets that already have a shortcut; I can re-assign them and the new shortcuts work. But for widgets that don't already have a shortcut, setting a shortcut doesn't seem to work, and it's compounded by the fact that each widget gets multiple entries (Bug 448609). That may be related.
Comment 9 Nicolas Fella 2024-03-19 21:06:01 UTC
By default there are not supposed to be any "Activate XY widget" shortcuts in the systemsettings list. Only after adding one from the applet/system tray setting it shows up in the systemsettings list
Comment 10 Nicolas Fella 2024-03-19 21:13:24 UTC
Can you attach your .config/kglobalshortcutsrc and .config/plasma-org.kde.plasma.desktop-appletsrc ?
Comment 11 kimimaru 2024-03-26 19:50:26 UTC
Created attachment 167810 [details]
kglobalshortcutsrc
Comment 12 kimimaru 2024-03-26 19:50:52 UTC
Created attachment 167811 [details]
plasma-org.kde.plasma.desktop-appletsrc
Comment 13 kimimaru 2024-03-26 19:51:15 UTC
Added attachments with sensitive information removed or redacted.