[gnome-builder] runner: don't copy our environment



commit c7e5699f97cef5edfdc9f8e7cdd64ce46bd35886
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 13 22:51:48 2016 -0700

    runner: don't copy our environment
    
    We want to ensure that we don't pass environment stuff from inside the
    app to the outside. For example, if we are running on jhbuild and the
    build is not against jhbuild.

 libide/runner/ide-runner.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libide/runner/ide-runner.c b/libide/runner/ide-runner.c
index 3bc8c63..5f2d58e 100644
--- a/libide/runner/ide-runner.c
+++ b/libide/runner/ide-runner.c
@@ -173,8 +173,6 @@ ide_runner_real_run_async (IdeRunner           *self,
 
   ide_subprocess_launcher_set_run_on_host (launcher, priv->run_on_host);
 
-  environ = g_get_environ (); /* We still rely on many system vars like DISPLAY */
-  ide_subprocess_launcher_set_environ (launcher, (const gchar * const *)environ);
   ide_subprocess_launcher_overlay_environment (launcher, priv->env);
 
   for (GList *iter = priv->argv.head; iter != NULL; iter = iter->next)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]