summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2018-03-05 00:08:25 +0100
committerChristian Persch <chpe@src.gnome.org>2018-03-05 00:08:25 +0100
commitf608f08f727bf9bc7b45e6e311560fc7f5a59e62 (patch)
treefa116c1e21c1358fecb7a65ecf7226bf0a02943b
parentcac7b40b507c8ef705c0d7a3c2fee8a4bc3ee6ef (diff)
downloadvte-f608f08f727bf9bc7b45e6e311560fc7f5a59e62.tar.gz
app: Unset env var when not in test mode
Just to make sure other processes don't inherit it.
-rw-r--r--src/app/app.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/app.cc b/src/app/app.cc
index 854ccbe6..d4240640 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -2113,6 +2113,8 @@ main(int argc,
if (options.test_mode) {
g_setenv("VTE_TEST", "1", true);
options.allow_window_ops = true;
+ } else {
+ g_unsetenv("VTE_TEST");
}
#endif