From 71d0f6fa56cb2645db9841d34666e030a8f8e06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 17 Jul 2019 09:40:58 +0200 Subject: [PATCH] conf: add support for overriding shell --- config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.c b/config.c index a4520ea0..2c375691 100644 --- a/config.c +++ b/config.c @@ -93,6 +93,11 @@ parse_section_main(char *line, struct config *conf, const char *path, unsigned l conf->font = strdup(value); } + else if (strcmp(key, "shell") == 0) { + free(conf->shell); + conf->shell = strdup(value); + } + else { LOG_ERR("%s:%u: invalid key: %s", path, lineno, key); return false;