diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-11-29 22:17:36 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-11-29 22:17:36 +0100 |
commit | adc5e8fa46cd328354570738aeb3418562b7695e (patch) | |
tree | 47f7becd2afdda1b9102175b3547fe42f4844b95 | |
parent | c6ad5731719ca21ba2fbe6edc63da47916dc056f (diff) | |
download | vte-adc5e8fa46cd328354570738aeb3418562b7695e.tar.gz |
pty: Remove useless setenv calls
Spawning will always provide its own envp which will replace the
environment when execve()ing.
https://gitlab.gnome.org/GNOME/vte/-/issues/271
-rw-r--r-- | src/pty.cc | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -253,15 +253,6 @@ Pty::child_setup() const noexcept peer_fd != STDERR_FILENO) { close(peer_fd); } - - /* Now set the TERM environment variable */ - /* FIXME: Setting environment here seems to have no effect, the merged envp2 will override on exec. - * By the way, we'd need to set the one from there, if any. */ - g_setenv("TERM", VTE_TERMINFO_NAME, TRUE); - - char version[7]; - g_snprintf (version, sizeof (version), "%u", VTE_VERSION_NUMERIC); - g_setenv ("VTE_VERSION", version, TRUE); } /* |