defaults.list or mimeapps.list?

Jerome Leclanche adys.wh at gmail.com
Tue Jan 21 09:09:08 PST 2014


On Tue, Jan 21, 2014 at 5:01 PM, Rex Dieter <rdieter at math.unl.edu> wrote:
> Jerome Leclanche wrote:
>
>> I'm finding a lot of conflicting information. Which to use? I'm using
>> mimeapps.list currently, I was certain defaults.list was the
>> deprecated one but I need an official word on this.
>
> See "Default application ordering" on
> http://www.freedesktop.org/wiki/Specifications/mime-actions-spec/
>
> In effect, its a bit implementation specific... gnome uses defaults.list,
> kde uses a mixture of InitialPreference= key and mimeapps.list
>
> -- Rex
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg

Grmph.

For the record, this is what I use, and what makes the most sense:
https://github.com/Adys/python-xdg/blob/master/xdg/actions.py#L120

1. Unalias the mime type
2. Check default application (in mimeapps.list)
3. Check added associations (mimeapps.list)
4. Check cached associations (mimeinfo.cache), discarding excluded
ones (mimeapps.list)
5. Recursively do the same for every parent of the mime type.

I'm having a deja vu here, I think this was brought up before. Anyway...

J. Leclanche


More information about the xdg mailing list