appinfo: avoid overriding the system defaults when adding support
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Dec 2010 16:44:51 +0000 (17:44 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Dec 2010 17:19:13 +0000 (18:19 +0100)
commit6a10591573a56c5dfe1ac5b8315447f63d29dd39
tree8acb00d36321f7d2306c2df2cd40ee828faa3d83
parente666a2ed696a9545a23371b53c4a07471b635d5c
appinfo: avoid overriding the system defaults when adding support

We want to be compatible with the following situation:
- there's no explicit default set in mimeapps.list
- we add support for a content type to a specific application, and that
  list is empty
- the default should be picked from the system list, not overridden by
  the user-added application.

So we make the default explicit in this case, by adding it to the
relevant section in mimeapps.list.

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