From 6452c77223cf8b5f3d84f02f9d5eb01cf54e89e6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 12 Apr 2019 16:57:12 +0200 Subject: Enable auto-reload by default (when compiled with inotify=1) --- src/options.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/options.c b/src/options.c index 2a5aae8..4c34b66 100644 --- a/src/options.c +++ b/src/options.c @@ -73,6 +73,9 @@ void init_parse_options(int argc, char **argv) opt.xinerama = 1; opt.xinerama_index = -1; #endif /* HAVE_LIBXINERAMA */ +#ifdef HAVE_INOTIFY + opt.auto_reload = 1; +#endif /* HAVE_INOTIFY */ feh_getopt_theme(argc, argv); @@ -519,6 +522,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; case 'R': opt.reload = atof(optarg); +#ifdef HAVE_INOTIFY + opt.auto_reload = 0; +#endif break; case 'S': if (!strcasecmp(optarg, "name")) -- cgit v1.2.3