aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-10-26 19:14:40 +0100
committerViliam Mateicka <viliam.mateicka@gmail.com>2009-10-26 19:14:40 +0100
commitf67426871bf11c79bf5bf975ad2adaa860a7378e (patch)
treea7f51b6a187a2f79e486564c387752a979b24236 /src/main.c
parent2bfddd43109171accbb307ec136d5a517e52bfff (diff)
downloadmpd-f67426871bf11c79bf5bf975ad2adaa860a7378e.tar.gz
mpd-f67426871bf11c79bf5bf975ad2adaa860a7378e.tar.xz
mpd-f67426871bf11c79bf5bf975ad2adaa860a7378e.zip
mpd.conf: new bool config value for enabling/disabling inotify update
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 49190af71..86fe069e5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -372,9 +372,13 @@ int main(int argc, char *argv[])
glue_state_file_init();
+ success = config_get_bool(CONF_AUTO_UPDATE, false);
#ifdef ENABLE_INOTIFY
- if (mapper_has_music_directory())
- mpd_inotify_init();
+ if (success && mapper_has_music_directory())
+ mpd_inotify_init();
+#else
+ if (success)
+ g_warning("inotify: auto_update was disabled. enable during compilation phase");
#endif
config_global_check();