Hi @james8aus,
I suspect it’s done with the Icon
key in the .desktop
file.
According to this page:
As of July 2018, there seem to be some bugs in Unity in how it reads .desktop files. Specifically, the path provided for the Icon field cannot be wrapped in quotes. Even if the path contains spaces, it must not be wrapped in quotes.
On the other hand, it’s worth mentioning here that the path provided for the Exec field must be wrapped in quotes if it contains spaces. If it doesn’t contain spaces, the quotes can be left off. This inconsistency in behavior is horribly confusing and should really be considered a bug.
Thus, the following is a valid
.desktop
:[Desktop Entry] Name=Firefox Developer Edition Comment=The developer edition of Firefox Quantum. Exec="/home/jack/Applications/Firefox Developer Edition/firefox" Icon=/home/jack/Applications/Firefox Developer Edition/browser/chrome/icons/default/default32.png Terminal=false Type=Application
The following will run, but not display the icon:
[Desktop Entry] Name=Firefox Developer Edition Comment=The developer edition of Firefox Quantum. Exec="/home/jack/Applications/Firefox Developer Edition/firefox" Icon="/home/jack/Applications/Firefox Developer Edition/browser/chrome/icons/default/default32.png" Terminal=false Type=Application
And the following won’t even run:
[Desktop Entry] Name=Firefox Developer Edition Comment=The developer edition of Firefox Quantum. Exec=/home/jack/Applications/Firefox Developer Edition/firefox Icon=/home/jack/Applications/Firefox Developer Edition/browser/chrome/icons/default/default32.png Terminal=false Type=Application
So, it seems you might only need a Icon=
key for every file.
Hope this helps.