Tiny Core Extensions > TCE Talk

freedesktop standard for icons and .desktop files.

(1/6) > >>

Jason W:
Please mention here if any extensions are having issues displaying icons in any of TC's window managers/desktop environments and they will be addressed.  Be sure to fetch the extension fresh from the repo or update your existing ones before reporting issues.

bmarkus:
This is not mentioned, but it is for TC 2.11

Jason W:
For 2.11, thanks.

The part of the .desktop file to pay attention to is the Icon and X-FullPathIcon entries.  X-FullPathIcon is to support legacy window managers.  Here is the preferred format:

Icon=icon                       
X-FullPathIcon=/path/to/icon.png  

The best place to place the icon is in /usr/local/share/pixmaps/icon.png since that will also be picked up by freedesktop compliant WMs by the Icon=icon or Icon=icon.png entry.  The X-FullPathIcon entry needs the full path and the icon suffix (png,etc) but the Icon entry does not by freedesktop standards.  However, some DE's have an issue with themes when the full path is listed in the Icon entry.  So do not put the full path in the Icon field.  

Also, the .desktop file needs to share the same name as the extension.  If there are more than one .desktop files in an extension, then one of them needs to match the extension name and follow the above format.  The extra .desktop files that are of a different name do not have to follow the new format.

More info will follow, but this is how to adjust existing extensions and new ones need a .desktop file in /usr/local/share/applications that is in this format.

Jason W:
Important change - Icon field needs to be Icon=icon rather than Icon=icon.png as not all desktop environments play well with Icon=icon.png, even though Icon=icon.png is freedesktop compliant.

bmarkus:

--- Quote from: Jason W on May 01, 2010, 07:51:46 PM ---Important change - Icon field needs to be Icon=icon rather than Icon=icon.png as not all desktop environments play well with Icon=icon.png, even though Icon=icon.png is freedesktop compliant.

--- End quote ---

No,  Icon=icon.png is not freedesktop compliant.

There are two options:

1)

Icon=xxx

where xxx.png (or xxx.svg) is in the /usr/local/share/pixmaps directory or xxx is element of the active Icon Theme

2) an absolute path

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

I will add a guide to WIKI for extension creators.

Navigation

[0] Message Index

[#] Next page

Go to full version