Bug 511710

Summary: TypeError in symbolicizeIconName when iconName is undefined (org.kde.desktopcontainment)
Product: [Plasma] plasmashell Reporter: Peer Peter <kdedev-pk>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: NEEDSINFO WAITINGFORINFO    
Severity: major CC: hein, kdedev, nate
Priority: NOR    
Version First Reported In: 6.5.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Peer Peter 2025-11-06 12:58:26 UTC
STEPS TO REPRODUCE:
1. Place a .desktop file with a valid URL on the KDE desktop
2. Click the .desktop file to open URL in Firefox (in different Activity)
3. Plasma panels and desktop controls disappear

OBSERVED RESULT:
- All panels and screen-edge/corner controls stop responding
- journalctl shows:
  file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:81: 
  TypeError: Cannot read property 'endsWith' of undefined

EXPECTED RESULT:
- Controls should remain functional
- Function should handle undefined iconName gracefully

SOFTWARE VERSIONS:
Arch Linux
KDE Plasma 6.x
Wayland session

ADDITIONAL INFORMATION:
The symbolicizeIconName() function in main.qml (line 81) doesn't check if iconName 
is defined before calling .endsWith(). Suggested fix: add null/undefined check at 
function start.

$ plasmashell --version
>>>>>
plasmashell 6.5.1
QThreadStorage: entry 8 destroyed before end of thread 0x558f9e6c4010
QThreadStorage: entry 2 destroyed before end of thread 0x558f9e6c4010
QThreadStorage: entry 1 destroyed before end of thread 0x558f9e6c4010
<<<<<

$uname -a
>>>>>
Linux hog5 6.17.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 29 Oct 2025 22:23:47 +0000 x86_64 GNU/Linux
<<<<<

$ inxi -S
>>>>>
System:
  Host: mememe Kernel: 6.17.6-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.5.1 Distro: Arch Linux
<<<<<

$ journalctl /usr/bin/plasmashell
>>>>>
[..]
Nov 06 13:24:24 mememe plasmashell[1673]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:81: TypeError: Cannot read property 'endsWith' of undefined
<<<<<
Comment 1 Nate Graham 2025-12-09 23:25:14 UTC
What do you mean "a valid URL"? Is it in the Icon= field? Can you attach or paste the contents of the .desktop file that makes this happen?
Comment 2 Bug Janitor Service 2025-12-24 03:46:30 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!