Generic icons support in shared-mime-info

David Faure dfaure at trolltech.com
Tue Jul 1 04:42:52 PDT 2008


On Wednesday 23 April 2008, Bastien Nocera wrote:
> Heya,
> 
> It took me a while, but the ~250 mime-types that required generic-icon
> (all the application/ mime-types and a bunch of others) in the
> shared-mime-info database now have generic-icons added to them.
> 
> I'll release shared-mime-info 0.24 some time next week after the
> translators have had time to catch up on the new strings.

Can you remind me the correct way to use generic-icons? The spec isn't 100% clear about this:
it's meant as a fallback if the iconname based on the mimetype name doesn't exist, right?

So 
  <mime-type type="application/x-ole-storage">
    <generic-icon name="x-office-document"/>
means:
  use <icon> field if set,
  otherwise use "application-x-ole-storage" as icon if it exists,
  otherwise use "x-office-document" as icon if it exists
right?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the xdg mailing list