GNOME Bugzilla – Bug 623508
poor handling of file:/// URIs
Last modified: 2010-10-09 07:16:29 UTC
_notification_daemon_pixbuf_from_path converts file:// URIs into file paths by just skipping the URI scheme, which is a fairly terrible way of doing it. Instead it should use g_file_new_for_commandline_arg and g_file_get_path.
Created attachment 165210 [details] [review] patch
Created attachment 171986 [details] [review] updated
Might even be better to skip: if (!strncmp (path, "file://", 7) || *path == '/') { too and always do g_file_new_for_commandline_arg with some g_file_is_native action?
Created attachment 171989 [details] [review] use g_file_is_native This seems a bit more straightforward.
Comment on attachment 171989 [details] [review] use g_file_is_native Looks good. Thanks!
pushed as commit c144b45.