After doing a bit of research, I added ‘StartupWMClass’ to the desktop file /var/lib/snapd/desktop/applications/gitkraken_gitkraken.desktop and rebooted - however the proper icon still doesn’t show. Here are the contents of the entire desktop file:
I modified the .desktop file to point to the GitKraken icon in the installation folder, which for me was /snap/gitkraken/139/usr/share/gitkraken/gitkraken.png
The modified .desktop file located at /var/lib/snapd/desktop/applications/gitkraken_gitkraken.desktop now looks like -
It might be best to contanct GitKraken about this. They are the ones publishing the snap, and I can’t find the source anywhere online, so it’s not possible for us to help them fix it.
The icon missing not showing up on snap install is a known issue that our team is looking into. I will +1 the bug report to notate your interest in the fix.