aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-20 17:37:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-20 17:37:16 +0000
commitbb3c20e284be6820d06e49d63887689f63f042c3 (patch)
tree6cbd67601bd94cdf3efb404e009f39c1e8e50064 /terminal.c
parentREADME: list 'lightweigh' under features (diff)
parentdoc: add --login-shell (diff)
Merge branch 'login-shell'
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 89c18c75..37b2cc84 100644
--- a/terminal.c
+++ b/terminal.c
@@ -589,8 +589,8 @@ load_fonts_from_conf(const struct terminal *term, const struct config *conf,
struct terminal *
term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
- const char *term_env, const char *foot_exe, const char *cwd,
- int argc, char *const *argv,
+ const char *term_env, bool login_shell, const char *foot_exe,
+ const char *cwd, int argc, char *const *argv,
void (*shutdown_cb)(void *data, int exit_code), void *shutdown_data)
{
int ptmx = -1;
@@ -777,7 +777,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
term_font_dpi_changed(term);
/* Start the slave/client */
- if ((term->slave = slave_spawn(term->ptmx, argc, term->cwd, argv, term_env, conf->shell)) == -1)
+ if ((term->slave = slave_spawn(term->ptmx, argc, term->cwd, argv, term_env, conf->shell, login_shell)) == -1)
goto err;
if (term->width == 0 && term->height == 0) {