main extension for a mimetype

David Faure dfaure at
Wed Jul 2 03:05:36 PDT 2008

On Wednesday 02 July 2008, Bastien Nocera wrote:
> On Tue, 2008-07-01 at 15:46 +0200, David Faure wrote:
> > The concept of the "main" extension for a mimetype is missing in
> > shared-mime-info,
> > (which constitutes a regression compared to our earlier system).
> <snip>
> > I see two solutions:
> > 1) fixing update-mime-database to respect the order of the globs [but
> > this is a bit of an undocumented use of that order]
> I'd go for this one, and documenting it. It would avoid a revup of the
> mime cache version, and unbreak your application for free.

Sounds good to me :-)

[It would also make unit tests more easy to write reliably; right now I have to sort the list of patterns
I get from the system and to sort the expected list of patterns, just to be able to compare them...]

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (

More information about the xdg mailing list