From 23a2aa5be6f97b4cf8bd2f5c7dad3def8ce970ef Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 Dec 2013 15:39:45 +0100 Subject: pass (potentially URL-encoded) file:// URLs to curl This means it will be treated like an HTTP image (no write operations, copying to /tmp etc), but it's still better than no file:// support. Also, this is why it's not documented yet. --- src/imlib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index 2047c63..36de346 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -243,8 +243,10 @@ int feh_load_image(Imlib_Image * im, feh_file * file) return 0; /* Handle URLs */ - if ((!strncmp(file->filename, "http://", 7)) || (!strncmp(file->filename, "https://", 8)) - || (!strncmp(file->filename, "ftp://", 6))) { + if ((!strncmp(file->filename, "http://", 7)) + || (!strncmp(file->filename, "https://", 8)) + || (!strncmp(file->filename, "ftp://", 6)) + || (!strncmp(file->filename, "file://", 7))) { image_source = SRC_HTTP; if ((tmpname = feh_http_load_image(file->filename)) == NULL) -- cgit v1.2.3