[gnome-builder/wip/gtk4-port: 1545/1774] plugins/shellcmd: make runtime closer to IdeRunner




commit 1e1f189203771a898f5207eadaa42b8b4131d115
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 15 21:53:45 2022 -0700

    plugins/shellcmd: make runtime closer to IdeRunner
    
    This makes things a bit better, in that it seems closer to how
    IdeRunManager works. Eventually we can get rid of IdeRunner, hopefully.

 src/plugins/shellcmd/gbp-shellcmd-run-command.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/shellcmd/gbp-shellcmd-run-command.c b/src/plugins/shellcmd/gbp-shellcmd-run-command.c
index 0a74e0a2e..3807e0852 100644
--- a/src/plugins/shellcmd/gbp-shellcmd-run-command.c
+++ b/src/plugins/shellcmd/gbp-shellcmd-run-command.c
@@ -465,6 +465,9 @@ gbp_shellcmd_run_command_create_launcher (GbpShellcmdRunCommand *self,
 
   ide_subprocess_launcher_set_cwd (launcher, cwd_expanded);
   ide_subprocess_launcher_push_args (launcher, (const char * const *)argv_expanded);
+  ide_subprocess_launcher_set_run_on_host (launcher, ide_runner_get_run_on_host (runner));
+  ide_subprocess_launcher_set_clear_env (launcher, ide_runner_get_clear_env (runner));
+  ide_subprocess_launcher_overlay_environment (launcher, ide_runner_get_environment (runner));
 
   if (env != NULL)
     {


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