conf: add support for overriding shell

This commit is contained in:
Daniel Eklöf 2019-07-17 09:40:58 +02:00
parent aa87be43ba
commit 71d0f6fa56
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;