On Sun, Apr 13, 2014 at 9:15 PM, Vladimir Kudrya <[email protected]> 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 _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
