Question on shared-mime-info adoption
dobey at novell.com
Mon Dec 5 20:09:03 EET 2005
Nautilus uses the API in libgnomeui to map mime types to icon file
names. In 2.12 and previous versions, this code looks for
gnome-mime-group-type, and then falls back to gnome-mime-group, and
then, to gnome-fs-regular. For directories and various other things
that may or may not be files, such as remote hosts, sockets, pipes,
and the like, it uses gnome-fs-<type> for the icons.
And yes, all of this is done using the icon theme. However, the Icon
Theme specification does not specify what the names of icons should
be. It only specifies that themeable icons should be somewhere in a
sub-directory of the theme directory.
If you want appropriate names to use, see the Icon Name Specification,
which unfortunately is not on the freedesktop.org web site, yet, but is
however, in CVS, in the same repository as the Icon Theme Spec.
On Mon, 2005-12-05 at 18:04 +0100, Luca Dionisi wrote:
> > That is, when it finds the mime-type of a file (following the
> > shared-mime-info), then:
> > - does it try to find the iconname following the Desktop Entry spec.?
> > - does it try to find the icon file following the Icon Theme spec.?
> > There is a dir, /usr/share/themes, that I don't understand the meaning of.
> Little update.
> I found by myself that /usr/share/themes is (well, I presume)
> used for the styles of the widgets and the windows.
> But my questions are still valid:
> Which "route" does Nautilus follow to find the icons for a file?
More information about the xdg