[gnome-builder] jhbuild: set IdeRunner:clear-env and IdeSubprocessLauncher:clear-env
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] jhbuild: set IdeRunner:clear-env and IdeSubprocessLauncher:clear-env
- Date: Wed, 14 Sep 2016 08:23:14 +0000 (UTC)
commit 98e49568850292033251fb8c5e5d3211dfacf74b
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 14 00:08:54 2016 -0700
jhbuild: set IdeRunner:clear-env and IdeSubprocessLauncher:clear-env
We typically want to clear Environment when building (more repeatable) but
we need to inherit some when running (for DISPLAY, WAYLAND_DISPLAY,
DBUS_SESSION_BUS_ADDRESS, and others).
plugins/jhbuild/jhbuild_plugin.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/jhbuild/jhbuild_plugin.py b/plugins/jhbuild/jhbuild_plugin.py
index df2aafc..21c3567 100644
--- a/plugins/jhbuild/jhbuild_plugin.py
+++ b/plugins/jhbuild/jhbuild_plugin.py
@@ -51,6 +51,7 @@ class JhbuildRuntime(Ide.Runtime):
# most of our settings should already be applied.
runner = Ide.Runner.new(self.get_context())
runner.set_run_on_host(True)
+ runner.set_clear_env(False)
runner.append_argv(binpath)
return runner
@@ -63,6 +64,7 @@ class JhbuildRuntime(Ide.Runtime):
launcher.push_argv(self.get_jhbuild_path())
launcher.push_argv('run')
launcher.set_run_on_host(True)
+ launcher.set_clear_env(True)
return launcher
except GLib.Error:
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]