summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-11-29 22:17:36 +0100
committerChristian Persch <chpe@src.gnome.org>2022-11-29 22:17:36 +0100
commitadc5e8fa46cd328354570738aeb3418562b7695e (patch)
tree47f7becd2afdda1b9102175b3547fe42f4844b95
parentc6ad5731719ca21ba2fbe6edc63da47916dc056f (diff)
downloadvte-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.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/pty.cc b/src/pty.cc
index 3ccc123a..654eefbc 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -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);
}
/*