slave: prefix argv[0] with a '-' when spawning a login-shell

This commit is contained in:
Daniel Eklöf 2020-02-20 18:36:09 +01:00
parent 6af4b87ec5
commit b5efe984bb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 44 additions and 13 deletions

3
main.c
View file

@ -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;