mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
conf: add support for overriding shell
This commit is contained in:
parent
aa87be43ba
commit
71d0f6fa56
1 changed files with 5 additions and 0 deletions
5
config.c
5
config.c
|
|
@ -93,6 +93,11 @@ parse_section_main(char *line, struct config *conf, const char *path, unsigned l
|
||||||
conf->font = strdup(value);
|
conf->font = strdup(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (strcmp(key, "shell") == 0) {
|
||||||
|
free(conf->shell);
|
||||||
|
conf->shell = strdup(value);
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue