mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -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);
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue