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.

Reply via email to