Bug 510137 - Cannot assign working shortcut for Notifications widget via System Settings, only via System Tray config (duplicate entries created)
Summary: Cannot assign working shortcut for Notifications widget via System Settings, ...
Status: RESOLVED DUPLICATE of bug 410903
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 6.4.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-01 18:48 UTC by xde
Modified: 2025-10-07 20:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xde 2025-10-01 18:48:20 UTC
STEPS TO REPRODUCE
1. Open System Settings → Shortcuts.
2. Assign a global shortcut (e.g. Meta+N) to Activate Notifications Widget.
3. Try pressing the shortcut.

OBSERVED RESULT
1. The shortcut does nothing.
2. In ~/.config/kglobalshortcutsrc, the entry looks like:
```activate widget 17=Meta+N,none,Activate Notifications Widget```
3. If instead you go to Edit Mode → hover over System Tray → Configure → Entries tab and set the shortcut there, it works correctly.
4. This creates a new entry in kglobalshortcutsrc with a different widget ID:
```activate widget 47=Meta+N,none,Activate Notifications Widget```
5. After that, System Settings shows two "Activate Notifications Widget" entries:
- One with no shortcut (old, dead entry).
- One with the actual shortcut that works.

EXPECTED RESULT
1. Assigning a shortcut in System Settings → Shortcuts for Activate Notifications Widget should work immediately.
2. Plasma should not create duplicate “Activate Notifications Widget” entries with different widget IDs.
3. Old/broken IDs should be cleaned up or updated automatically.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 KDE
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Comment 1 TraceyC 2025-10-01 20:19:04 UTC
Thanks for the bug report. I'm seeing different, but still bugged behavior in git-master

As a note, I don't see any entry in Shortcuts for "Activate Notifications Widget" in Fedora 42 or Solus until I set it within System Tray → Configure. 

Recreation steps
- Created a shortcut for Notifications from the System Tray Settings - the shortcut works at this point
- Opened System Settings → Shortcuts and assigned a different shortcut to Activate Notifications Widget

Result:
No notice about a conflict
Neither the new or old shortcut do anything
There is only one entry in kglobalshortcutsrc for "Activate Notification Widget" that has the new shortcut

- Then, I reopened System Tray Settings
Observed: There is no keyboard shortcut set for Notifications any longer

- Reassigned the new shortcut to Notifications 
Observed: There is a pop-up "Found Conflict" which says
Shortcut 'Meta+M' is already assigned to action 'Activate Notifications Widget' of plasmashell. Do you want to reassign it?

So it seems that the situation is different, but still problematic. The common bug is that the shortcut set via System Settings → Shortcuts doesn't appear to work on either system.
Comment 2 Nate Graham 2025-10-07 20:57:32 UTC
Ultimately the problem here is that multiple entries are getting created in System Settings for these widgets. That's tracked by Bug 410903.

*** This bug has been marked as a duplicate of bug 410903 ***