slave: set TERM environment variable in slave process

This commit is contained in:
Daniel Eklöf 2019-11-01 21:01:15 +01:00
parent d2b395bd43
commit 69d62d3cd2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 6 additions and 4 deletions

View file

@ -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->shell)) == -1)
if ((term->slave = slave_spawn(term->ptmx, argc, argv, conf->term, conf->shell)) == -1)
goto err;
/* Initiailze the Wayland window backend */