Issue: The app icon is showing correctly in Application Dashboard and Krunner. But in task switcher the default wayland icon is displayed.
This is the .desktop file:
[Desktop Entry]
Name=Trackself
Comment=Trackself time tracker
Exec=trackself
Icon=${SNAP}/meta/gui/trackself.png
Terminal=false
Type=Application
Categories=Productivity;
If I hardcode the Icon path to /snap/trackself/current/meta/gui/trackself.png
then the task switcher can find it too.
Based on this, my novice mind assumes that the issue is in the task switcher not having the $SNAP environment variable set correctly.
Anybody got any suggestions how to work around this problem? Obviously I do not want to hard code the icon path.