Associating a mime-type with an icon

Alexander Larsson alexl at
Thu Feb 26 19:14:01 EET 2004

On Thu, 2004-02-26 at 11:48, Thomas Leonard wrote:
> On Thu, Feb 26, 2004 at 09:44:03AM +0100, Alexander Larsson wrote:
> > On Wed, 2004-02-25 at 22:46, Benjamin Dauvergne wrote:
> > > Hello
> > > 
> > > There is actually mime-type and icon-theme spec, but i would like to
> > > know if the different desktops are converging toward a same method for
> > > getting the icon to represent a particular mime-type.
> > 
> > I think the mime type spec hints about a way to do this mapping, but i
> > don't know if anyone is using that. Gnome is not at least, we use a
> > slightly different mapping.
> > 
> > Mimetype image/x-foo maps to gnome-mime-image-x-foo, and if that doesn't
> > exist it looks for gnome-mime-image.
> ROX is using the new mapping. There are some icon themes using it here:
> (there are also some old-style ROX-specific themes there, so be careful)
> I think the sensible thing to do is try the new name, and fall back to the
> GNOME name if it's missing. However, the fallback won't always work
> because the MIME spec uses different names for some types (due to the
> merge with KDE's database).

We fixed gnome-icon-theme to work with the new mime database. However,
we won't at this time change to the new mime naming, since we are frozen
etc. We'll have that discussion for gnome 2.7 (later).

 Alexander Larsson                                            Red Hat, Inc 
                   alexl at    alla at 
He's a scarfaced umbrella-wielding messiah trapped in a world he never made. 
She's a warm-hearted cat-loving research scientist with a knack for trouble. 
They fight crime! 

More information about the xdg mailing list