Generic icons support in shared-mime-info
Matthias Clasen
mclasen at redhat.com
Tue Jul 1 05:00:35 PDT 2008
On Tue, 2008-07-01 at 13:42 +0200, David Faure wrote:
> 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?
>
That was my interpretation, too. And it is what I've implemented in gio.
More information about the xdg
mailing list