diff options
author | Christian Persch <chpe@src.gnome.org> | 2018-03-05 00:08:25 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2018-03-05 00:08:25 +0100 |
commit | f608f08f727bf9bc7b45e6e311560fc7f5a59e62 (patch) | |
tree | fa116c1e21c1358fecb7a65ecf7226bf0a02943b | |
parent | cac7b40b507c8ef705c0d7a3c2fee8a4bc3ee6ef (diff) | |
download | vte-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.cc | 2 |
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 |