Bug 448609 - Duplicated applets under Plasma system service of Shortcuts KCM
Summary: Duplicated applets under Plasma system service of Shortcuts KCM
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (show other bugs)
Version: 5.23.90
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 17:13 UTC by Patrick Silva
Modified: 2024-03-13 17:44 UTC (History)
9 users (show)

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


Attachments
screenshot1 (180.19 KB, image/png)
2022-01-16 17:13 UTC, Patrick Silva
Details
screenshot2 (179.15 KB, image/png)
2022-01-16 17:13 UTC, Patrick Silva
Details
screenshot3 (175.50 KB, image/png)
2022-01-16 17:13 UTC, Patrick Silva
Details
kglobalshortcutsrc (16.27 KB, text/plain)
2022-01-16 23:43 UTC, Patrick Silva
Details
plasma-org.kde.plasma.desktop-appletsrc file (19.50 KB, text/plain)
2022-01-24 16:28 UTC, Patrick Silva
Details
/home/nate/.config/plasma-org.kde.plasma.desktop-appletsrc (36.64 KB, text/plain)
2022-01-24 16:32 UTC, Nate Graham
Details
screenshot of Plasma 6 alpha (99.41 KB, image/png)
2023-11-13 19:17 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-01-16 17:13:22 UTC
Created attachment 145552 [details]
screenshot1

SUMMARY
Some shortcuts appears repeatedly under Plasma system service of Shortcuts KCM.
Please see the attached screenshots.


STEPS TO REPRODUCE
1. open Shortcus KCM
2. click on Plasma system service
3. 

OBSERVED RESULT
repaated shortcuts

EXPECTED RESULT
no repeated shortcut

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-01-16 17:13:36 UTC
Created attachment 145553 [details]
screenshot2
Comment 2 Patrick Silva 2022-01-16 17:13:53 UTC
Created attachment 145554 [details]
screenshot3
Comment 3 David Edmundson 2022-01-16 22:57:08 UTC
Can you include ~/.config/kglobalshortcutsrc
Comment 4 Patrick Silva 2022-01-16 23:43:06 UTC
Created attachment 145566 [details]
kglobalshortcutsrc
Comment 5 Nicolas Fella 2022-01-17 12:24:15 UTC
I have this on my selfbuilt session, but not on Neon unstable or testing
Comment 6 Nicolas Fella 2022-01-17 12:26:27 UTC
Relevant part from Patrick's kglobalshortcutsrc:

[plasmashell]
_k_friendly_name=Plasma
activate task manager entry 1=Meta+1,Meta+1,Activate Task Manager Entry 1
activate task manager entry 10=none,Meta+0,Activate Task Manager Entry 10
activate task manager entry 2=Meta+2,Meta+2,Activate Task Manager Entry 2
activate task manager entry 3=Meta+3,Meta+3,Activate Task Manager Entry 3
activate task manager entry 4=Meta+4,Meta+4,Activate Task Manager Entry 4
activate task manager entry 5=Meta+5,Meta+5,Activate Task Manager Entry 5
activate task manager entry 6=Meta+6,Meta+6,Activate Task Manager Entry 6
activate task manager entry 7=Meta+7,Meta+7,Activate Task Manager Entry 7
activate task manager entry 8=Meta+8,Meta+8,Activate Task Manager Entry 8
activate task manager entry 9=Meta+9,Meta+9,Activate Task Manager Entry 9
activate widget 10=none,none,Activate Vaults Widget
activate widget 103=none,none,Activate Task Manager Widget
activate widget 117=none,none,Activate Task Manager Widget
activate widget 12=none,none,Activate Notifications Widget
activate widget 121=none,none,Activate Minimize all Windows Widget
activate widget 134=Alt+F1,none,Activate Application Launcher Widget
activate widget 138=none,none,Activate Application Launcher Widget
activate widget 14=Meta+Z,none,Activate Disks  Devices Widget
activate widget 15=Meta+X,none,Activate Keyboard Layout Widget
activate widget 156=none,none,Activate Application Launcher Widget
activate widget 161=none,none,Activate Application Launcher Widget
activate widget 18=Meta+B,none,Activate Audio Volume Widget
activate widget 19=Meta+F,none,Activate Digital Clock Widget
activate widget 21=Meta+A,none,Activate Battery and Brightness Widget
activate widget 37=none,none,Activate Weather Report Widget
activate widget 38=none,none,Activate Touchpad Widget
activate widget 56=none,none,Activate Minimize all Windows Widget
activate widget 74=none,none,Activate Application Launcher Widget
activate widget 8=none,none,Activate System Tray Widget

Looks like the relevant widget changed its id multiple times?

That might also explain various "my meta key stopped working" reports I've seen over the last few weeks
Comment 7 Nate Graham 2022-01-20 21:22:26 UTC
Can reproduce. This is indeed most likely the root cause of Bug 447962.
Comment 8 Nate Graham 2022-01-20 21:22:34 UTC
*** Bug 447962 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2022-01-20 21:22:38 UTC
*** Bug 448335 has been marked as a duplicate of this bug. ***
Comment 10 Marco Martin 2022-01-24 15:41:32 UTC
can you post also plasma-org.kde.desktop.appletsrc?
Comment 11 Marco Martin 2022-01-24 15:42:42 UTC
either the widget changed id, or there is another panel on antother (maybe disconnected) screen?
Comment 12 Patrick Silva 2022-01-24 16:28:31 UTC
Created attachment 145863 [details]
plasma-org.kde.plasma.desktop-appletsrc file

There is no plasma-org.kde.desktop.appletsrc file on my system.
I have plasma-org.kde.plasma.desktop-appletsrc instead.
Comment 13 Nate Graham 2022-01-24 16:32:44 UTC
Created attachment 145864 [details]
/home/nate/.config/plasma-org.kde.plasma.desktop-appletsrc
Comment 14 medin 2022-01-24 22:49:12 UTC
This bug has no relation to Bug 447962, I have no duplicated entries in Plasma shortcuts page and I lost Meta launcher shortcut.
Comment 15 Nate Graham 2022-01-25 17:08:57 UTC
OK, thanks for the info.
Comment 16 Marco Martin 2022-02-04 13:03:30 UTC
This is from the attached kglobalshortcutsrc:
activate widget 134=Alt+F1,none,Activate Application Launcher Widget
activate widget 138=none,none,Activate Application Launcher Widget
activate widget 156=none,none,Activate Application Launcher Widget
activate widget 161=none,none,Activate Application Launcher Widget
activate widget 74=none,none,Activate Application Launcher Widget

since there is only one kickoff in the appletsrc, it does say that trough the history there have been many plasma configurations, each one with kickoff mapped as a different id.
Now, if you remove an applet(or its parent containment) it does the proper thing, it removes it correctly from kglobalshortcutsrc 

but every time one will reset the configuration by removing the appletsrc file, stray entries will remain here.

Perhaps we could do prior to loading the default layout (so when plasma starts from scratch) go a cleanup of all "activate winget *" actions
Comment 17 Marco Martin 2022-02-04 13:04:22 UTC
This is clearly *not* a regression but something which always happened, since kde4 times
Comment 18 matthias.schrumpf 2022-08-10 20:58:33 UTC
Is there a known solution to this problem? I ran into the same issue after setting my desktop layout back to default (Breeze). I tried deleting both kglobalshortcutsrc and plasma-org.kde.plasma.desktop-appletsrc to no avail.
Comment 19 Patrick Silva 2023-11-13 19:17:38 UTC
Created attachment 163129 [details]
screenshot of Plasma 6 alpha

This bug persists on Plasma 6 alpha. And Kwin and Plasma are missing under System Settings and System Settings is available three times. Please see the screenshot attached to this comment.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: Wayland