Associating a mime-type with an icon

Thomas Leonard tal00r at ecs.soton.ac.uk
Thu Feb 26 12:48:15 EET 2004


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:

	http://rox.sourceforge.net/phpwiki/index.php/ThemeGallery

(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).


-- 
Thomas Leonard			http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk	tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1




More information about the xdg mailing list