xdg-utils: How to handle audio CDs?

Vincent Untz vuntz at gnome.org
Tue Oct 2 08:42:26 PDT 2012


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.


More information about the xdg mailing list