[gnome-builder] plugins/host: add minimal environment when jumping to host



commit 212b68d74bdb49da04bb336375df0f15558f79bd
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jul 14 13:54:17 2022 -0700

    plugins/host: add minimal environment when jumping to host
    
    Related #1704

 src/plugins/host/gbp-host-runtime.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/host/gbp-host-runtime.c b/src/plugins/host/gbp-host-runtime.c
index 058142081..cc6782504 100644
--- a/src/plugins/host/gbp-host-runtime.c
+++ b/src/plugins/host/gbp-host-runtime.c
@@ -57,6 +57,7 @@ gbp_host_runtime_flatpak_contains_program_in_path (IdeRuntime   *runtime,
 
   run_context = ide_run_context_new ();
   ide_run_context_push_host (run_context);
+  ide_run_context_add_minimal_environment (run_context);
   ide_run_context_push_shell (run_context, TRUE);
   ide_run_context_append_argv (run_context, "which");
   ide_run_context_append_argv (run_context, program);
@@ -82,6 +83,7 @@ gbp_host_runtime_prepare_to_build (IdeRuntime    *runtime,
   g_assert (IDE_IS_RUN_CONTEXT (run_context));
 
   ide_run_context_push_host (run_context);
+  ide_run_context_add_minimal_environment (run_context);
 
   IDE_EXIT;
 }
@@ -102,6 +104,7 @@ gbp_host_runtime_prepare_to_run (IdeRuntime    *runtime,
   g_assert (IDE_IS_RUN_CONTEXT (run_context));
 
   ide_run_context_push_host (run_context);
+  ide_run_context_add_minimal_environment (run_context);
 
   config = ide_pipeline_get_config (pipeline);
   prefix = ide_config_get_prefix (config);


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