aboutsummaryrefslogtreecommitdiff
path: root/slave.c
diff options
context:
space:
mode:
Diffstat (limited to 'slave.c')
-rw-r--r--slave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/slave.c b/slave.c
index 2f23e996..ecfce7e6 100644
--- a/slave.c
+++ b/slave.c
@@ -21,7 +21,6 @@
#include "macros.h"
#include "terminal.h"
#include "tokenize.h"
-#include "version.h"
#include "xmalloc.h"
extern char **environ;
@@ -352,11 +351,12 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
}
setenv("TERM", term_env, 1);
- setenv("TERM_PROGRAM", "foot", 1);
- setenv("TERM_PROGRAM_VERSION", FOOT_VERSION_SHORT, 1);
setenv("COLORTERM", "truecolor", 1);
setenv("PWD", cwd, 1);
+ unsetenv("TERM_PROGRAM");
+ unsetenv("TERM_PROGRAM_VERSION");
+
#if defined(FOOT_TERMINFO_PATH)
setenv("TERMINFO", FOOT_TERMINFO_PATH, 1);
#endif