On Tue, Jan 21, 2014 at 5:01 PM, Rex Dieter <[email protected]> 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
> [email protected]
> 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
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to