aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 20:03:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 20:03:08 +0000
commit0bd2ddd8ad60a77e27cdb459da8e319647fd6f59 (patch)
treec75bb8293570d15cb53b5dc0b7dd3adf977c76e1 /terminal.c
parentslave: set TERM environment variable in slave process (diff)
term_init(): initialize slave TERM from term_init() argument
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index d6aaf4ff..f71d90a6 100644
--- a/terminal.c
+++ b/terminal.c
@@ -289,7 +289,7 @@ initialize_fonts(struct terminal *term, const struct config *conf)
struct terminal *
term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
- int argc, char *const *argv,
+ const char *term_env, int argc, char *const *argv,
void (*shutdown_cb)(void *data, int exit_code), void *shutdown_data)
{
int ptmx = -1;
@@ -428,7 +428,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
LOG_INFO("cell width=%d, height=%d", term->cell_width, term->cell_height);
/* Start the slave/client */
- if ((term->slave = slave_spawn(term->ptmx, argc, argv, conf->term, conf->shell)) == -1)
+ if ((term->slave = slave_spawn(term->ptmx, argc, argv, term_env, conf->shell)) == -1)
goto err;
/* Initiailze the Wayland window backend */