Bug 505837

Summary: Ghost entry in applet list with Plasma 6.4
Product: [Applications] KClock Reporter: Filip <filip.kendes1>
Component: GeneralAssignee: Devin Lin <espidev>
Status: RESOLVED FIXED    
Severity: minor CC: arojas, hanyoung, kde, nicolas.fella
Priority: NOR    
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.04.3
Sentry Crash Report:
Attachments: showcase

Description Filip 2025-06-20 11:29:01 UTC
SUMMARY
Unsupported widget is displayed in the widgets drawer. I'm not sure which widget it is, only that it's not user installed.

STEPS TO REPRODUCE
1. Right click on the desktop
2. Click Enter Edit Mode
3. Click on Add or Manage Widgets...

OBSERVED RESULT
Unsupported widget is displayed in the widgets drawer

EXPECTED RESULT
There should be no unsupported widgets displayed

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Filip 2025-06-20 11:37:21 UTC
Created attachment 182417 [details]
showcase
Comment 2 Antonio Rojas 2025-06-20 11:59:25 UTC
Do you have kclock installed?
Comment 3 Filip 2025-06-20 12:38:02 UTC
I have kclock installed
Comment 4 Devin Lin 2025-06-28 04:35:18 UTC
I can't reproduce this issue, the plasmoid loads fine for me. Do you still see that entry when uninstalling kclock?
Comment 5 Filip 2025-06-28 06:56:01 UTC
Plasmoid issue was caused by the kclock and reinstalling the app resolved the issue. I'll close this as resolved, not sure if you can make some change to make sure this doesn't happen again. If you want you can keep it open.

Thanks.
Comment 6 Antonio Rojas 2025-06-28 07:35:47 UTC
This is 100% reproducible here. Installing kclock creates a correct kclock_1x2 entry plus a ghost entry. Uninstalling kclock removes both.
Comment 7 Bug Janitor Service 2025-06-28 09:47:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kclock/-/merge_requests/215
Comment 8 Antonio Rojas 2025-06-28 09:58:03 UTC
The MR fixes the ghost entry, but the "real" entry is still non-functional because "This widget was written for an unknown version of Plasma and is not compatible with Plasma 6"
Comment 9 Antonio Rojas 2025-06-28 10:54:46 UTC
Git commit 71dc9176c02e6edb0cf7debc75e4ef25781721b2 by Antonio Rojas.
Committed on 28/06/2025 at 09:46.
Pushed by nicolasfella into branch 'master'.

Use KPackageStructure instead of ServiceTypes in metadata.json

The latter is removed from KPackage in KF6 and causes ghost entries in the applet list with Plasma 6.4

M  +2    -4    src/plasmoid/KClock_1x2/package/metadata.json
M  +2    -4    src/plasmoid/KClock_KWeather_3x3/package/metadata.json

https://invent.kde.org/utilities/kclock/-/commit/71dc9176c02e6edb0cf7debc75e4ef25781721b2
Comment 10 Nicolas Fella 2025-06-28 11:09:48 UTC
Git commit dad282e37e071af3f21b6d6865b60917a9a86783 by Nicolas Fella.
Committed on 28/06/2025 at 11:09.
Pushed by nicolasfella into branch 'master'.

Add X-Plasma-API-Minimum-Version to applet metadata

Otherwise Plasma assumes it's not compatible with Plasma 6

M  +1    -0    src/plasmoid/KClock_1x2/package/metadata.json

https://invent.kde.org/utilities/kclock/-/commit/dad282e37e071af3f21b6d6865b60917a9a86783
Comment 11 Nicolas Fella 2025-06-28 11:10:40 UTC
Git commit 1afede28bf6404b5a1bd6c7c355a3920f27e6828 by Nicolas Fella.
Committed on 28/06/2025 at 11:10.
Pushed by nicolasfella into branch 'release/25.04'.

Add X-Plasma-API-Minimum-Version to applet metadata

Otherwise Plasma assumes it's not compatible with Plasma 6
(cherry picked from commit dad282e37e071af3f21b6d6865b60917a9a86783)

M  +1    -0    src/plasmoid/KClock_1x2/package/metadata.json

https://invent.kde.org/utilities/kclock/-/commit/1afede28bf6404b5a1bd6c7c355a3920f27e6828
Comment 12 Nicolas Fella 2025-06-28 11:10:48 UTC
Git commit 398f304357d232edd2eafa283692d0f4e6482f9f by Nicolas Fella, on behalf of Antonio Rojas.
Committed on 28/06/2025 at 11:10.
Pushed by nicolasfella into branch 'release/25.04'.

Use KPackageStructure instead of ServiceTypes in metadata.json

The latter is removed from KPackage in KF6 and causes ghost entries in the applet list with Plasma 6.4
(cherry picked from commit 71dc9176c02e6edb0cf7debc75e4ef25781721b2)

M  +2    -4    src/plasmoid/KClock_1x2/package/metadata.json
M  +2    -4    src/plasmoid/KClock_KWeather_3x3/package/metadata.json

https://invent.kde.org/utilities/kclock/-/commit/398f304357d232edd2eafa283692d0f4e6482f9f