diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-20 17:37:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-20 17:37:16 +0000 |
| commit | bb3c20e284be6820d06e49d63887689f63f042c3 (patch) | |
| tree | 6cbd67601bd94cdf3efb404e009f39c1e8e50064 /config.c | |
| parent | README: list 'lightweigh' under features (diff) | |
| parent | doc: add --login-shell (diff) | |
Merge branch 'login-shell'
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -159,6 +159,14 @@ parse_section_main(const char *key, const char *value, struct config *conf, conf->shell = strdup(value); } + else if (strcmp(key, "login-shell") == 0) { + conf->login_shell = ( + strcasecmp(value, "on") == 0 || + strcasecmp(value, "true") == 0 || + strcasecmp(value, "yes") == 0) || + strtoul(value, NULL, 0) > 0; + } + else if (strcmp(key, "geometry") == 0) { unsigned width, height; if (sscanf(value, "%ux%u", &width, &height) != 2 || width == 0 || height == 0) { |
