Bug 498976 - The application icon is missing from the window title bar but appears in the taskbar
Summary: The application icon is missing from the window title bar but appears in the ...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: 6.2.90
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-21 20:32 UTC by Жора Змейкин
Modified: 2025-01-22 09:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example (36.23 KB, image/png)
2025-01-21 20:32 UTC, Жора Змейкин
Details

Note You need to log in before you can comment on or make changes to this bug.
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.