Bug 498976

Summary: The application icon is missing from the window title bar but appears in the taskbar
Product: [Plasma] kwin Reporter: Жора Змейкин <katze_942>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.2.90   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example

Description Жора Змейкин 2025-01-21 20:32:04 UTC
Created attachment 177570 [details]
Example

SUMMARY
Some running applications may display their icon in the taskbar, but for some reason, that same icon does not appear in the window title bar (it shows the default Wayland icon instead). I tested three applications from different sources in KDE Neon Testing, and the results vary:

Here, Bad refers to an application that displays an icon on the taskbar but lacks one in the window title bar.
— Nekoray
Native: Bad

— virt-manager
Native: OK
Flatpak: Bad

— LibreOffice (in all versions the icon is absent in the window title bar, but is present on the taskbar)
Native: Bad
Flatpak: Bad
Snap: Bad

Depending on the distribution, some details may differ, but the issue is clear. Why does the taskbar recognize the application icon while the window title bar does not?

OBSERVED RESULT
The icon is not present in the window title bar, but it is present in the taskbar.

EXPECTED RESULT
The icon should appear both on the taskbar and in the window title bar (except in cases where the icon cannot be retrieved).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon Testing
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Comment 1 David Redondo 2025-01-22 08:36:40 UTC
This will be an application bug, it does not set its app_id properly or the desktop file cannot be found. The taskmanager is running additional heuristics
Comment 2 Жора Змейкин 2025-01-22 09:28:44 UTC
(In reply to David Redondo from comment #1)
> This will be an application bug, it does not set its app_id properly or the
> desktop file cannot be found. The taskmanager is running additional
> heuristics

I understand that this is an application bug. But can’t we at least partially address this issue on behalf of the app? I think having any icon is better than showing the Wayland icon for many applications.