App icon image not displaying in dock

Hi Just installed F40 from scratch by formatting F39. I some times format and reinstall the OS instead of upgrading.

I installed Java apps like Eclipse IDE and SAP Gui. They are stored locally (~.local/share/applications/). I can see the app icon in show apps, however, when I launch the app, it just displays a blue diamond shaped icon. I did copy the .desktop file to /usr/share/applications/ and rebooted the laptop but the problem remains. How do i resolve this?

Thanks

Start the app and identify its wmclass property:
Alt+F2: lg > Windows > AppName > wmclass: …

Edit the desktop file:

desktop-file-edit \
    --set-key="StartupWMClass" \
    --set-value="${WM_CLASS}" \
    ~/.local/share/applications/${APP_NAME}.desktop
1 Like

Thanks, used the terminal command

image

image

image

I rebooted but it’s still the same.

Removed the “” and it worked. Thanks

1 Like