mime apps specification

Jerome Leclanche adys.wh at gmail.com
Sun Apr 13 13:20:38 PDT 2014

On Sun, Apr 13, 2014 at 9:15 PM, Vladimir Kudrya <vladimir-csp at yandex.ru> wrote:
> On 13.04.2014 21:54, Jerome Leclanche wrote:
> Reading local first, you will find the foo.desktop file *before* you
> arrive to the item in the global blacklist.
> That is if you just need to find the default. And IF [Default Application]
> for the type even exists in the hierarchy.
> How to get whole list of associations of given mime type then? Spec says to
> iterate from local to global, concatenate [Added] and [Removed] separately,
> then use all [Added] minus [Removed] as blacklist. This means that local
> [Added] does not override global [Removed].

You proceed the same way for every kind of item you want, adding items
to the blacklist ([Removed]) as you go along. You exclude items from
ever being added to the list if they are blacklisted; this avoids
dealing with blacklist priorities separately.

J. Leclanche

More information about the xdg mailing list