GDesktopAppInfo: simplify how defaults work
authorRyan Lortie <desrt@desrt.ca>
Mon, 26 Sep 2011 07:56:22 +0000 (03:56 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 26 Sep 2011 20:54:24 +0000 (16:54 -0400)
commit104ea17125aa70f926bddb3889d594b6f5642a21
tree2f0f561d93f26998c6dd2b15c79bdbdc45164133
parent5b2c809dda6ae04bcf3205702b2cc91b1b47cc64
GDesktopAppInfo: simplify how defaults work

Previously, we took the default application for a particular mimetype
from the system and copied it into the user's configuration as the
default there.

Instead of doing that we leave the user's default unset, and at time of
use, if the user has no explicitly-set default value, we use the system
default.

This avoids complicated situations where inappropriate applications were
being set as the default in the user's configuration.

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