Fixing broken icons in gnome (Dash)
Fixing broken icons in gnome (Dash2Dock, etc.)
If the icon of a desktop application does not appear in Dash2Dock, it is due to a missing StartupWMClass entry in the *.desktop file. Use Looking Glass to find the correct name of the application.
Start Looking Glass via Alt+F2, then type lg, which will open a window. In this window, go to Windows and search for the exact application, copy the wmclass name, and enter it in the desktop file as StartupWMClass=LicenseManager.
Then update the desktop file in ~/.local/share/applications
1
2
3
4
5
6
7
8
9
10
[Desktop Entry]
Name=License Manager
Comment=Building Energy Performance and District Simulation
Exec=/run/media/hirth/Daten/Git/VICUS/LizenzManager/bin/release/LicenseManager
Icon=/run/media/hirth/Daten/Git/VICUS/LizenzManager/LicenseManager/resources/gfx/Logo.svg
Terminal=false
Type=Application
Categories=Science
StartupNotify=true
StartupWMClass=LicenseManager
StartupWMClass= → Connects the window with the icon in the dock (very important!)
This post is licensed under CC BY 4.0 by the author.
