[vte] app: Unset env var when not in test mode
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] app: Unset env var when not in test mode
- Date: Sun, 4 Mar 2018 23:09:14 +0000 (UTC)
commit f608f08f727bf9bc7b45e6e311560fc7f5a59e62
Author: Christian Persch <chpe src gnome org>
Date: Mon Mar 5 00:08:25 2018 +0100
app: Unset env var when not in test mode
Just to make sure other processes don't inherit it.
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 854ccbe..d424064 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]