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)
committerDan Winship <danw@gnome.org>
Fri, 18 May 2012 16:17:28 +0000 (12:17 -0400)
commit555cd1923fae52a145d527904f4efc0fc6298585
treea551271b81e30e501ca24931d724a3e537a685a5
parent0e6d9df35c948d5e65eae0edb6652a9cce88f557
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