aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-20 17:36:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-20 17:36:09 +0000
commitb5efe984bbfec151b70d3450f4f18243313de497 (patch)
tree7eb36e6dc8d96120ffdf2081b365c1c161cda17c /main.c
parentconfig: add 'login-shell' option (diff)
slave: prefix argv[0] with a '-' when spawning a login-shell
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 878db875..7709e05c 100644
--- a/main.c
+++ b/main.c
@@ -332,7 +332,8 @@ main(int argc, char *const *argv)
goto out;
if (!as_server && (term = term_init(
- &conf, fdm, wayl, conf.term, "foot", cwd, argc, argv,
+ &conf, fdm, wayl, conf.term, conf.login_shell,
+ "foot", cwd, argc, argv,
&term_shutdown_cb, &shutdown_ctx)) == NULL) {
free(cwd);
goto out;