[gnome-builder/gnome-builder-3-30] flatpak: don't allow 'flatpak build' to spew information



commit c0963e325b7c8cc6b9738ed1894ee9e3502615e6
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 7 13:21:47 2019 -0800

    flatpak: don't allow 'flatpak build' to spew information
    
    This can mess up communication with things like GDB.

 src/plugins/flatpak/gbp-flatpak-runner.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runner.c b/src/plugins/flatpak/gbp-flatpak-runner.c
index dc2721704..f13f8c84b 100644
--- a/src/plugins/flatpak/gbp-flatpak-runner.c
+++ b/src/plugins/flatpak/gbp-flatpak-runner.c
@@ -133,6 +133,11 @@ gbp_flatpak_runner_fixup_launcher (IdeRunner             *runner,
         }
     }
 
+  /* Disable G_MESSAGES_DEBUG as it could cause 'flatpak build' to spew info
+   * and mess up systems that need a clean stdin/stdout/stderr.
+   */
+  ide_subprocess_launcher_setenv (launcher, "G_MESSAGES_DEBUG", NULL, TRUE);
+
   ide_subprocess_launcher_insert_argv (launcher, i++, self->build_path);
 }
 


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