[gnome-builder] plugins/flatpak: set basic color information for build environment



commit 8f0f2c1d069fd5e1f77f72a0d3529d6d509f716f
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 6 16:39:46 2022 -0700

    plugins/flatpak: set basic color information for build environment

 src/plugins/flatpak/gbp-flatpak-runtime.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime.c b/src/plugins/flatpak/gbp-flatpak-runtime.c
index 86f1bb72a..052d64df1 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime.c
@@ -370,6 +370,12 @@ gbp_flatpak_runtime_handle_build_context_cb (IdeRunContext       *run_context,
   /* We can pass the CWD directory down just fine */
   ide_run_context_set_cwd (run_context, cwd);
 
+  /* We want some environment available to the `flatpak build` environment
+   * so that we can have working termcolor support.
+   */
+  ide_run_context_setenv (run_context, "TERM", "xterm-256color");
+  ide_run_context_setenv (run_context, "COLORTERM", "truecolor");
+
   /* Now setup our basic arguments for the application */
   ide_run_context_append_argv (run_context, "flatpak");
   ide_run_context_append_argv (run_context, "build");


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