Page 1 of 1

Handling Icon= definitions in .desktop file

Posted: Sun May 02, 2010 1:37 pm
by bmarkus
Current PCManfm2/libfm (0.9.5/0.1.11) doesn't display icon defind as

Icon=fooview.png

only as

Icon=fooview

or as an absolute path

Icon=/usr/local/share/pixmaps/fooview.png

However Icon=fooview.png are handled correctly in Menu system and other DE environments. Going through .desktop files for example on my CentOS box there are several applications using this format.

In the freedesktop standard http://standards.freedesktop.org/deskto ... c-1.0.html there is an example:

A. Example Desktop Entry File

[Desktop Entry]
Version=1.0
Type=Application
Name=Foo Viewer
Comment=The best viewer for Foo objects available!
TryExec=fooview
Exec=fooview %F
Icon=fooview.png
MimeType=image/x-foo;
X-KDE-Library=libfooview
X-KDE-FactoryName=fooviewfactory
X-KDE-ServiceType=FooService

According to this Icon=fooview.png is compliant so it is a bug in the current version. Also not handling it results missing icons on the Desktop and in the menu::/applications view.

Bug report #2995482 submitted.

Regards... Béla

Re: Handling Icon= definitions in .desktop file

Posted: Mon May 03, 2010 12:14 am
by bmarkus
Well, in 1.1 draft example is changed from

Icon=fooview.png

to

Icon=fooview