summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-04-14 17:13:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-04-14 17:14:47 +0200
commit45399ce0ce0c738a86f928b1dde6e653fc7fb4c5 (patch)
tree5170875bb83b842fa0d0369e32732e8770ac86cf
parentece02b618b414244ef8247bd727e30e664249f77 (diff)
feh_absolute_path: Do not alter URLs (closes #153)
-rw-r--r--ChangeLog2
-rw-r--r--src/filelist.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b265ce..4559262 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@ git HEAD
scandir (closes #147)
* Patch by rangerer: --randomize: re-randomize after list is through
(closes #154)
+ * When setting a wallpaper from a URL, do not try to store it as
+ absolute path in .fehbg (closes #153)
Fri, 28 Feb 2014 18:20:25 +0100 Daniel Friesel <derf+feh@finalrewind.org>
diff --git a/src/filelist.c b/src/filelist.c
index 28bab93..b1a369a 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -573,7 +573,7 @@ char *feh_absolute_path(char *path)
if (!path)
return(NULL);
- if (path[0] == '/')
+ if (path[0] == '/' || path_is_url(path))
return(estrdup(path));
/* This path is not relative. We're gonna convert it, so that a
filelist file can be saved anywhere and feh will still find the