Bug 503855

Summary: [Plasma 6.3.4] Discover / KNewStuff repeats "cache entry -1" and fails to apply themes properly
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: Yugurtha Adel MEHENNI <yamehenni>
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: REPORTED ---    
Severity: normal CC: aleixpol, alexander.lohnau, kdelibs-bugs-null, leinir, nate
Priority: NOR    
Version First Reported In: 6.12.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yugurtha Adel MEHENNI 2025-05-06 16:53:49 UTC
System:
- KDE Plasma: 6.3.4
- KDE Frameworks: 6.1.2
- Qt: 6.8.3
- Kubuntu 25.04 (Wayland session)
- CPU: Intel Core i5-13600KF
- GPU: AMD Radeon RX 7900 XTX

Summary:
Discover and System Settings (via KNewStuff) show repeated issues when installing global themes or color schemes from KDE Store.

Observed bugs:
- Endless repetition of "looking for cache entry / -1" messages in the console
- Themes extract multiple times, leading to warnings like "already exists"
- Discover fails to install or apply themes cleanly
- Requires manual creation of ~/.config/*.knsrc files for colors, themes, icons
- Error with transientParent: “You have not set a transientParent on KNewStuff.Dialog...”
- Themes using legacy metadata.desktop throw warnings

Steps to reproduce:
1. Open System Settings > Appearance > Global Themes
2. Try installing themes like Sweet, Nordic, Layan, WhiteSur
3. Check logs (launch `systemsettings` or `discover` from terminal)
4. Observe the excessive output and install failures

This occurs on a clean Kubuntu 25.04 install with all Plasma 6.3.4 packages up to date. Likely a regression in KNewStuff backend or KDE integration on Discover.

Thanks in advance for your help!
Reported by: Yugurtha Adel Mehenni (StarYAM)