summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-12 16:57:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-12 16:57:12 +0200
commit6452c77223cf8b5f3d84f02f9d5eb01cf54e89e6 (patch)
treef265007a5fb61cefc96376bac26406adbc43bdde /src
parentfb698401b68a797a0a3e9373dd68c45164848a92 (diff)
Enable auto-reload by default (when compiled with inotify=1)
Diffstat (limited to 'src')
-rw-r--r--src/options.c6
1 files changed, 6 insertions, 0 deletions
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"))