diff --git a/libs/conf/config.c b/libs/conf/config.c index 47a1dc9..65331f3 100644 --- a/libs/conf/config.c +++ b/libs/conf/config.c @@ -684,9 +684,11 @@ void conf_init(void) { bindsfile = strdup(dest); } +#if FIFO if (config_setting_lookup_string(conf, "fifofile", &dest)) { fifofile = strdup(dest); } +#endif if (config_setting_lookup_string(conf, "screenshotfile", &dest) && strcmp(dest, "NULL")) { screenshotfile = strdup(dest); diff --git a/libs/options.h b/libs/options.h index fd8466b..93ba8b7 100644 --- a/libs/options.h +++ b/libs/options.h @@ -61,7 +61,9 @@ static int maxcache = 512; /* Max image size to cache */ static char *cachedir = "default"; /* Cache directory. Default means spmenu will determine automatically */ /* FIFO options */ +#if FIFO static char *fifofile = "/tmp/spmenu.fifo"; /* spmenu FIFO path */ +#endif /* Screenshot options */ static char *screenshotfile = NULL; /* Screenshot file path. If set to NULL, the default path will be used. */