aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-17 07:40:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-17 07:40:58 +0000
commit71d0f6fa56cb2645db9841d34666e030a8f8e06b (patch)
tree9563b3c151ab2274684c77beb57f78b06de191ec
parentslave: report exec() failure back to main process (diff)
conf: add support for overriding shell
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
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;