diff options
author | Anthony Iliopoulos <ailiop@altatus.com> | 2022-08-22 13:02:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@chaosdorf.de> | 2022-08-22 17:43:57 +0200 |
commit | 5f4a9ec55bd4bebfab62fa3c1c62461321b5467b (patch) | |
tree | e7c09d88a8c8ca690826747b2c54de6508407491 /src | |
parent | dea7713739195076cb55a08729f9fb9b747d933e (diff) |
winwidget: do not add an inotify watch if file is a url
inotify_add_watch calls fail when the file is a url, since it does not
correspond to an actual on-disk path. The temporary file path fetched by
curl could be kept and monitored, but since this is unlikely to change
just avoid monitoring files opened via a url.
Diffstat (limited to 'src')
-rw-r--r-- | src/winwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index 9f61ba6..132b57e 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -739,7 +739,7 @@ void winwidget_inotify_remove(winwidget winwid) #ifdef HAVE_INOTIFY void winwidget_inotify_add(winwidget winwid, feh_file * file) { - if (opt.auto_reload) { + if (opt.auto_reload && !path_is_url(file->filename)) { D(("Adding inotify watch for %s\n", file->filename)); char dir[PATH_MAX]; feh_file_dirname(dir, file, PATH_MAX); |