Bug 449224

Summary: Freedesktop Icons are only searched for in /usr and not /usr/local
Product: [Frameworks and Libraries] frameworks-kiconthemes Reporter: Joshua Goins <josh>
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.89.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Joshua Goins 2022-01-27 04:45:55 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Please move this to the correct category if this is wrong :-)

STEPS TO REPRODUCE
1. Create a scalable svg or bitmap and place it in /usr/local/share/icons/hicolor/{scalable, 32x32, etc}
2. Launch a program with a .desktop file specifying the name of that icon
3. The icon is shown in the task manager widget correctly, but not in the actual window decoration

OBSERVED RESULT
It's sort of a "blank file" or "not found" icon instead of the actual app icon.

EXPECTED RESULT
The actual app icon.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Fedora Linux 35
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I found this while trying to fix PolyMC's icon bugginess while running it Wayland native, and surprised to find this bug! Now, moving the icon file and installing it in /usr is fine, but it's even weirder that the task manager is able to pick it up correctly and not the window decoration (which means the problem isnt the app itself).
Comment 1 David Edmundson 2023-09-06 10:39:01 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.
Comment 2 Nate Graham 2023-09-06 13:56:57 UTC
Not a KWin bug; moving to KIconThemes for further triage.