Skip to content
Snippets Groups Projects
Commit 6452c772 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Enable auto-reload by default (when compiled with inotify=1)

parent fb698401
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,9 @@ void init_parse_options(int argc, char **argv) ...@@ -73,6 +73,9 @@ void init_parse_options(int argc, char **argv)
opt.xinerama = 1; opt.xinerama = 1;
opt.xinerama_index = -1; opt.xinerama_index = -1;
#endif /* HAVE_LIBXINERAMA */ #endif /* HAVE_LIBXINERAMA */
#ifdef HAVE_INOTIFY
opt.auto_reload = 1;
#endif /* HAVE_INOTIFY */
feh_getopt_theme(argc, argv); feh_getopt_theme(argc, argv);
...@@ -519,6 +522,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) ...@@ -519,6 +522,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
break; break;
case 'R': case 'R':
opt.reload = atof(optarg); opt.reload = atof(optarg);
#ifdef HAVE_INOTIFY
opt.auto_reload = 0;
#endif
break; break;
case 'S': case 'S':
if (!strcasecmp(optarg, "name")) if (!strcasecmp(optarg, "name"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment