On Mon, 2009-10-19 at 10:43 +1100, Hamish Moffatt wrote: > On Mon, Oct 19, 2009 at 03:00:18AM +0400, Stanislav Maslovski wrote: > > When I run geeqie (a gtk aplication) from a terminal I see this > > message: > > > > Desktop file '/usr/share/applications/xpdf.desktop' should not include > > extension in Icon key: 'xpdf.xpm' > > > > This file is in /usr/share so it must be controlled by your package. I > > see that the other files in that directory indeed do not include the > > extension in their icon key. > > Hmm I see several that do include .xpm, > > ams.desktop:Icon=/usr/share/pixmaps/ams.xpm > googleearth.desktop:Icon=/usr/share/pixmaps/googleearth.xpm > gsmc.desktop:Icon=mini-gsmc.xpm > python2.4.desktop:Icon=/usr/share/pixmaps/python2.4.xpm > python2.5.desktop:Icon=/usr/share/pixmaps/python2.5.xpm > uninstaller.desktop:Icon=/usr/share/pixmaps/wine.xpm > winecfg.desktop:Icon=/usr/share/pixmaps/wine.xpm > xpdf.desktop:Icon=xpdf.xpm > > and others that include .png. The freedesktop.org menu spec doesn't say > anything about omitting the extension either. > > http://standards.freedesktop.org/desktop-entry-spec/1.0/ar01s05.html
The specification says this: Icon ----- Icon to display in file manager, menus, etc. If the name is an absolute path, the given file will be used. If the name is not an absolute path, the algorithm described in the Icon Theme Specification will be used to locate the icon. ----- So, if an absolute path is given the extension MUST be included (otherwise the icon file will not be found). If an absolute path is not given then the algorithm described here http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html is applied. If you look at the algorithm you will see that it tries to concatenate a given icon name with three different extensions: xpm, png, svg, and then searches for these files in standard directories. Therefore, from your example I conclude that gsmc package has the same bug, but all others are just ok because they use absolute pathnames. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org