GNOME Bugzilla – Bug 665379
g_app_info_launch_default_for_uri ends as Operation not supported when url contains %2F
Last modified: 2012-06-22 12:42:31 UTC
Created attachment 202583 [details] testcase When trying to open following URL: http://sourceforge.net/projects/scantailor/files%2Fscantailor-devel%2Fplus%2F0.9.11pre-2011-11-30%2FREADME/download by g_app_info_launch_default_for_uri() function, URL is not opened: ** (process:3932): WARNING **: Could not launch default application for URI: Operation not supported URL open just fine when pasted into Firefox. Compile testcase by: gcc launch.c `pkg-config gio-2.0 --cflags --libs`
'paste into firefox' is not a very strong test for url validity...
Okay, so what is? Wget? Midori? Google chrome? It simply opens in every browser I tried. So there's no reason to not get over g_app_info_launch_default_for_uri IMO.
The reason for the failure here is in gvfs, client/gvfsuriutils.c:g_vfs_decode_uri refuses to accept uris which contain %-encoded slashes.
This has been fixed by transition to g_app_info_launch_default_for_uri() in bug 676313.