Bug 423476

Summary: Inapppropriate warnings about theme contexts
Product: [Frameworks and Libraries] frameworks-kiconthemes Reporter: RJVB <rjvbertin>
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description RJVB 2020-06-25 08:22:47 UTC
SUMMARY
KIconThemes spews lots of warnings about (presumably) perfectly valid icon themes like Adwaita.

STEPS TO REPRODUCE
1. Select a non-KDE icon theme like Adwaita, or just have it installed
2. Open any application using the non-KDE theme, or do `kcmshell5 icons`

OBSERVED RESULT
Lots of warnings like
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/8x8/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/16x16/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/16x16/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/24x24/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/24x24/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/32x32/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/32x32/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/48x48/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/48x48/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/64x64/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/64x64/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/96x96/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/96x96/ui/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/256x256/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/512x512/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/opt/local/share/icons/Adwaita/scalable/legacy/"
Invalid Context= "UI" line for icon theme:  "/opt/local/share/icons/Adwaita/scalable/ui/"


EXPECTED RESULT
Only warnings about contexts that are not in the relevant standard(s), and preferably only when the theme is actually being loaded at the user's request (i.e. not when reading the minimal information required to compile a list of available icon themes).