Shared-mime checking order

Stanislav Brabec sbrabec at suse.cz
Fri Jul 27 01:41:19 PDT 2007


Alexander Larsson wrote:

> Gnome currently doesn't look at the priorities at all I believe.

GNOME prioritizes applications from 
/usr/share/applications/defaults.list.


SuSE has a script, which creates this list as a heuristics from all
available desktop files.

It would be nice to have something similar in upstream (and in code, not
as a script).

It does:
1. Read /etc/gnome-defaults.conf.
2. Collect all available desktop files.
3. Go through all declared MIME types and search for default application
   for defaults.list in following order:
3.1 Installed application listed in /etc/gnome-defaults.conf for certain
    MIME type.
3.2 Installed application listed in /etc/gnome-defaults.conf as
    preferred default.
3.3 Installed application listed in /etc/gnome-defaults.conf as default.
3.4 Installed application with GNOME in Categories.
3.5 Installed application with GTK in Categories.
3.6 Installed application.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/



More information about the xdg mailing list