gio: Error out when we cannot modify a GAppInfo
authorBastien Nocera <hadess@hadess.net>
Fri, 26 Aug 2011 15:36:12 +0000 (16:36 +0100)
committerBastien Nocera <hadess@hadess.net>
Tue, 30 Aug 2011 14:55:02 +0000 (15:55 +0100)
commit229234111c418c2186868c47bfdd6684be8ee1cf
tree87cfc3026ce4309d9e80a26020f043ec01fe4e53
parent619b77319619d84523866fd11e2cc484b470ed80
gio: Error out when we cannot modify a GAppInfo

g_desktop_app_info_set_as_default_for_type() and
g_desktop_app_info_set_as_last_used_for_type () require the
application's ID, but depending on how the GAppInfo was created,
we might not be have one, and would thus silently fail to set
the default application, or last used application.

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