[gnome-builder] plugins/podman: Add option "--interactive" to launcher



commit 54e222020382ffd67bf3f2ac559fcbdc1a2d8de1
Author: Ondřej Míchal <harrymichal seznam cz>
Date:   Sun Sep 6 18:58:36 2020 +0200

    plugins/podman: Add option "--interactive" to launcher
    
    Description of the "--interactive" option in "podman exec" is "Keep
    STDIN open even if not attached".
    
    This enables to run CLI apps that rely on input through stdin that would
    normally exit imediatelly when they don't detect an attached stdin
    (e.g., language server providers).

 src/plugins/podman/gbp-podman-subprocess-launcher.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/podman/gbp-podman-subprocess-launcher.c 
b/src/plugins/podman/gbp-podman-subprocess-launcher.c
index 2e942a15f..e749d4c61 100644
--- a/src/plugins/podman/gbp-podman-subprocess-launcher.c
+++ b/src/plugins/podman/gbp-podman-subprocess-launcher.c
@@ -81,6 +81,7 @@ gbp_podman_subprocess_launcher_spawn (IdeSubprocessLauncher  *launcher,
       ide_subprocess_launcher_insert_argv (launcher, i++, "podman");
       ide_subprocess_launcher_insert_argv (launcher, i++, "exec");
       ide_subprocess_launcher_insert_argv (launcher, i++, "--privileged");
+      ide_subprocess_launcher_insert_argv (launcher, i++, "--interactive");
 
       if (ide_subprocess_launcher_get_needs_tty (launcher))
         ide_subprocess_launcher_insert_argv (launcher, i++, "--tty");


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