Application icon missing in Dash though still showing in Dock

My application can be found in Dash, but only the name is shown, not the icon:

image

And after running the app, the icon can be seen in Dock:

Here is the desktop file.

[Desktop Entry]
Name=CoBang
GenericName=QR code scanner
X-GNOME-FullName=CoBang QR code scanner for GTK desktop
Comment=Scan and decode QR from camera or static image
Keywords=qr;code;qr-code;qr-decoder;qr-scanner
Exec=cobang
Terminal=false
Type=Application
Icon=vn.hoabinh.quan.CoBang
StartupWMClass=vn.hoabinh.quan.CoBang
StartupNotify=true
Categories=GTK;Office;Graphics;AudioVideo;Video;Scanning;
DBusActivatable=true

How to fix it?

Fixed. It turns out that the icon cache in my ~/.local/share/icons is corrupted, because before that, I installed my app to ~/.local/ and then manually deleted files.
Fixed by doing:

$ update-icon-caches ~/.local/share/icons/hicolor/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.