Fix default app lookup wrt parent types and defaults.list
authorAlexander Larsson <alexl@redhat.com>
Thu, 28 Jun 2012 12:50:37 +0000 (14:50 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 28 Jun 2012 13:05:03 +0000 (15:05 +0200)
commitf14c0112d07832b0ae4c75fd8d348e8f15d131d1
tree0518ffa184eb63f08d301510740695e540bb47e5
parent1ae30806403e556c8297a16a25a18687d9e80f89
Fix default app lookup wrt parent types and defaults.list

There was an issue when looking up the default handler
for a type where a supertype was listed in defaults.list.
We would pick the default for the parent type even if
there was a handler for the more specific type.

In the case of the new-style defaults marking (
"Default Applications" in mimeapps.list) we were already
checking for a more specific handler befor using a default,
but we also need to do a similar check for the defaults.list
case.

https://bugzilla.gnome.org/show_bug.cgi?id=678944
gio/gdesktopappinfo.c