Desktop entry Icons: filename extensions?

Ville Skyttä ville.skytta at
Tue Aug 17 01:45:16 EEST 2004

There seems to be a bit of conflicting (or lacking) information in the
desktop entry and icon theme specs: should one use filename extensions
for Icon entries in .desktop files or not?  Ie. if one installs foo.png
into one of the "correct" icon dirs somewhere, should a .desktop file
intended to use that icon ideally have "Icon=foo.png" or "Icon=foo"?

Desktop entry spec seems to indicate that one should use "foo.png":

...while the lookup algorithm in the icon theme spec suggests otherwise:

I assume that the filename extension should be included in the value of
the .desktop file's Icon key.  Correct?  If so (or if not), perhaps this
could be clarified in some of the specs?

More information about the xdg mailing list