Bug 483690 - generic Wayland icon for any Qt app that has no .desktop file entry
Summary: generic Wayland icon for any Qt app that has no .desktop file entry
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.0.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-15 15:48 UTC by microcai
Modified: 2024-04-10 17:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description microcai 2024-03-15 15:48:15 UTC
kwin_wayland relay on .desktop file to resolve the window decoration icon.

if an app is standalone and has no system-wide .desktop file associated  with it, then the generic wayland icon is used rather than app provided pixmap icon set by QApplication::setWindowIcon(QPixmap(...))

see ralated QTBUG: https://bugreports.qt.io/browse/QTBUG-101427

this behavior breaks every app than does not need to  "INSTALL" into system and insert an icon into /usr/share/icons/
Comment 1 Nate Graham 2024-04-10 17:42:52 UTC
Yep that's how window icons work on Wayland per the core spec. There's currently nothing we can do in KDE to work around it.

There's a proposed Wayland protocol to let apps that don't want to install icons manually set their own window icons: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/269

If that gets merged, Qt and KWin can add support for it to make this work the way id did on X11. If not, there's nothing we can do.