[gnome-builder/gnome-builder-3-38] flatpak: allow --add-policy parameter



commit 3e87076a6cf100404bbd2e115a992975b58a174e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 14 11:20:55 2020 -0800

    flatpak: allow --add-policy parameter
    
    Fixes #1360

 src/plugins/flatpak/gbp-flatpak-runner.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runner.c b/src/plugins/flatpak/gbp-flatpak-runner.c
index dd1ccbfc6..f75d2bf65 100644
--- a/src/plugins/flatpak/gbp-flatpak-runner.c
+++ b/src/plugins/flatpak/gbp-flatpak-runner.c
@@ -138,7 +138,8 @@ gbp_flatpak_runner_fixup_launcher (IdeRunner             *runner,
                   g_str_has_prefix (arg, "--env") ||
                   g_str_has_prefix (arg, "--system-talk") ||
                   g_str_has_prefix (arg, "--own-name") ||
-                  g_str_has_prefix (arg, "--talk-name"))
+                  g_str_has_prefix (arg, "--talk-name") ||
+                  g_str_has_prefix (arg, "--add-policy"))
                 ide_subprocess_launcher_insert_argv (launcher, i++, arg);
             }
         }


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