OSDN Git Service

g_app_info_launch_default_for_uri: don't use GFile if we don't have to
authorDan Winship <danw@gnome.org>
Fri, 18 May 2012 12:49:05 +0000 (08:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jul 2012 19:16:57 +0000 (15:16 -0400)
commit12ac7ddd6da475be2215af1f39ffab2f64d2f4a0
tree6697723aff14940d677df1bc6f418c56634aa5a1
parentfcdf7790169b108941c9890ad2acc31b81416ee1
g_app_info_launch_default_for_uri: don't use GFile if we don't have to

GFile doesn't handle some "real" URIs, so check if there's a default
handler for the URI scheme first, and only use g_file_new_for_uri()
and g_file_query_default_handler() if not. Eg, this fixes the case of
opening http URIs with "%2F" in the path.

https://bugzilla.gnome.org/show_bug.cgi?id=666386
gio/gappinfo.c