Le mardi 02 octobre 2012, à 16:12 +0100, Jerome Leclanche a écrit : > Vincent, > > In python-mime, I integrated both defaults.list and mimeinfo.cache: > https://github.com/Adys/python-xdg/blob/master/xdg/actions.py#L119 > > I remember going through the spec and kind of having to take decisions in > its stead; is the ordering I have reasonable? (See the comment)
I don't know all the details about the MIME spec, but I'd recommend how it's implemented in glib and qt. For glib, see g_app_info_get_default_for_type() and get_all_desktop_entries_for_mime_type() in http://git.gnome.org/browse/glib/tree/gio/gdesktopappinfo.c Cheers, Vincent -- Les gens heureux ne sont pas pressés. _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
