From 6af4b87ec5067380a46adad4ce3c862db155c619 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 20 Feb 2020 18:35:10 +0100 Subject: config: add 'login-shell' option --- config.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index 1dd6652f..39a72648 100644 --- a/config.c +++ b/config.c @@ -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) { -- cgit v1.3