0

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:

  1. Switching to a different icon theme that supports firefox-developer has its icon properly applied, within its respective theme.
  2. Changing the icon value to aseprite correctly displays aseprite's icons.

How can I get the correct icons?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.