When running as dmenu the cache file will be set to /dev/null

This commit is contained in:
Scoopta 2019-11-06 00:17:22 -08:00
parent c31327b279
commit eeb8a8a324

View File

@ -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) {