[gnome-builder] flatpak: silence output from running 'which'



commit b43e31bfa4f6940e0528a9990268822782928c4d
Author: Matthew Leeds <mleeds redhat com>
Date:   Tue Feb 28 18:04:16 2017 -0600

    flatpak: silence output from running 'which'
    
    This commit silences the output in the flatpak runtime's
    contains_program_in_path function which is consistent with how the
    IdeRuntime function works.

 plugins/flatpak/gbp-flatpak-runtime.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index cde2acf..3dd4461 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -97,7 +97,8 @@ gbp_flatpak_runtime_contains_program_in_path (IdeRuntime   *runtime,
    * has been created and setup. Instead, we will use flatpak to run the
    * runtime which was added in Flatpak 0.6.13.
    */
-  launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
+  launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_SILENCE |
+                                          G_SUBPROCESS_FLAGS_STDERR_SILENCE);
 
   ide_subprocess_launcher_set_run_on_host (launcher, TRUE);
   ide_subprocess_launcher_set_clear_env (launcher, FALSE);


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