My application's icon is not showing if I do not use an absolute path like here:
[Desktop Entry]
Type=Application
Name=MyProgram
GenericName=MyProgram
Comment=This is a comment
Icon=/opt/extras.ubuntu.com/MyProgram/Icons/myprogram.svg
Exec=myprogram
Categories=Utility;TextTools;
Hidden=false
Terminal=false
Type=Application
Instead I write
Icon=myprogram
just like I call the program with Exec=myprogram
, where it searches under /usr/bin
.
According to the free desktop standards I copied the icons to /usr/share/icons/hicolor
and even deleted the icon-cache as described here with sudo gtk-update-icon-cache /usr/share/icons/hicolor
. Still my icon does not appear.