From eeb8a8a3249465ae8baa65d6a8f50121ed36d1e1 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 6 Nov 2019 00:17:22 -0800 Subject: [PATCH] When running as dmenu the cache file will be set to /dev/null --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index c3991cd..591ef78 100644 --- a/src/main.c +++ b/src/main.c @@ -454,6 +454,7 @@ int main(int argc, char** argv) { if(strcmp(get_exec_name(argv[0]), "dmenu") == 0) { map_put(config, "mode", "dmenu"); + cache_file = "/dev/null"; } else if(mode != NULL) { map_put(config, "mode", mode); } else if(map_get(config, "mode") == NULL) {