Bug 497500

Summary: Kickoff uses the wrong icon if the filename of an icon with an absolute path is the same as in the icon theme
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Alex <allo>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate, notmart, p.r.worrall
Priority: NOR Keywords: regression
Version First Reported In: 6.9.0   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=494389
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alex 2024-12-15 12:19:29 UTC
SUMMARY
When the icon selected for kickoff has a name that matches a icon in the icon theme, the theme icon is used.

STEPS TO REPRODUCE
1. Create a PNG file and name it like an existing icon. To be sure it doesn't have anything to do with KDE or menu related terms name it kwrite.png and put it anywhere (it doesn't have to be any icon related path)
2. Set the icon as kickoff icon
3. The preview in the dialog looks fine

OBSERVED RESULT
After closing the dialog with OK, your panel now has the kwrite icon from the icon theme. When opening the dialog again, the preview shows the correct icon.

EXPECTED RESULT
The selected icon should be used.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2
Kernel Version: 6.11.10-amd64 (64-bit)
Comment 1 Paul Worrall 2024-12-15 14:58:02 UTC
Confirmed with: 

KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Graphics Platform: Wayland
Comment 2 Alex 2024-12-15 15:08:59 UTC
Also a regression from 5.x.