[kwin] [Bug 466599] Window decoration and Alt+Tab menu for Wayland-native app shows generic Wayland icon; Task manager shows correct icon

whitenoise <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=466599

whitenoise <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #9 from whitenoise <[email protected]> ---
I write to also report this problem with Obsidian Ubuntu 26.04 / Snap

The task manager icon is correct. The Alt-tab thumbnail is wayland default.
It's not clear to me, why the first is picked up correctly and second is not.

It is my understanding from some googling (and please correct me if I am wrong)
the the way the icon resolution should work this way
```
Window Identifier (app_id / WM_CLASS)
       │
       ▼
[1] Exact File Name Match? (e.g., org.kde.dolphin.desktop) ──YES──► Found
       │ NO
       ▼
[2] Match StartupWMClass Field inside any .desktop file?   ──YES──► Found
       │ NO
       ▼
[3] Binary / Exec Executable Match?                        ──YES──► Found
       │ NO
       ▼
[4] Fallback to generic icon / window defaults
```

The snap installs a `obsidian-md.obsidian.Obsidian.desktop` in
`/var/lib/snapd/desktop/applications`  with the correct
`StartupWMClass=md.obsidian.Obsidian`

According to the flowchart above, I should hit 2 (or maybe even 3), but that's
not working and this is where I believe the problem is.
If I manually rename the .desktop to `md.obsidian.Obsidian.desktop`, I hit the
1 case and it works. However, I cannot force snap to use this format (snap uses
`{snapname}-{originaldesktopfilename}.desktop`.

Forcing the app to run in X11 mode works (i.e. follows the above flow chart).

There is a problem under KDE / Wayland / Case 2. Please, look into it.

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.