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?
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
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…