[Wayland] GNOME dash icons on opened apps are generic

This happens with “third party” apps like Viber desktop etc

On X11 this is not a problem: Viber icon on dash -when opened- is from Viber not a blue generic icon. So they dropped entirely X11 and did not fix this icon issue?

Anyway, can this be fixed after F43/GNOME 49 install?

Here is how icons working properly under X11 (F42). A dot under the icon indicates an open application…

Check the WMClass of the window using the “Looking Glass” (Alt+F2, then type lg , look on the Windows tab.

If there is no “StartupWMClass=” entry, then add one: fill out the class you found in the looking glass. Do these changes on a copy of the .desktop launcher that you store in ~/.local/share/applications.

If there is StartupWMClass entry corresponding with what you saw in lg, then check the icon name: perhaps no icon was installed. You can place your own icon in ~/.local/share/icons with the name you see in the Icon= line, which then will be used by the DE

1 Like

Unfortunately not working this method. I added StartupWMClass=ViberPC on viber.desktop file at ~/.local/share/applications also copied viber.png on ~/.local/share/icons folder and pointed at it by adding a line on viber.desktop. Then rebooted. On login viber icon disappeared now from everywhere (not only when app is opened) and viber app takes ages to load…

It is frustrating and funny at the same time. This situation is unfixed for years in Wayland and GNOME guys decided to drop support for X11.

desktop-file-install \
    --dir=${HOME}/.local/share/applications \
    --set-key=StartupWMClass \
    --set-value=com.viber.Viber \
    /usr/share/applications/viber.desktop
2 Likes

Out of curiosity, how did you installed this app?

Because this issue is very rare and affects very little apps.

Is not rare -in my case at least- i have 4-5 applications that behave in this way. Anyways, neat solution by @vgaetera!

1 Like