In a .desktop file I want to set the value of
Icon without using an absolute path.
My previous attempt with a different application worked, in which I placed the different sizes in
.local/share/icons/hicolor/nxn/apps (n being a multiple of 2, like 16x16, 24x24), all named
aseprite.png and used the following configuration:
[Desktop Entry] Version=1.0 Exec=/opt/aseprite/aseprite Icon=aseprite Name=Aseprite Terminal=false Type=Application
The icons show correctly in Dolphin, the .desktop file itself, and so on. However the same can't be said for the .desktop file I made for Firefox Developer Edition:
[Desktop Entry] Version=1.0 Exec=/opt/firefox-developer/firefox %u Icon=firefox-developer Name=Firefox Developer Edition Web Browser Terminal=false Type=Application
This file seems to ignore the icons I put in hicolor. My guess was that it was retrieving the icon based on the executable name, but that might not be the case because:
Two things I've noticed:
- Switching to a different icon theme that supports firefox-developer has its icon properly applied, within its respective theme.
- Changing the icon value to
asepritecorrectly displays aseprite's icons.
How can I get the correct icons?