[gnome-builder/gnome-builder-3-28] flatpak: allow applications to talk to portals



commit e98522f6d9acb80fe5472aef23576d5099acb5cb
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Aug 5 15:32:58 2018 +0200

    flatpak: allow applications to talk to portals
    
    Portals are explicitly designed to give sandboxed applications access to
    resources in a secure manner, and flatpak therefore grants all applications
    permission to talk to any portal.
    
    As a result, few manifests will explicitly request that permission, so
    to have apps work as expected when run through our flatpak-runner instead
    of flatpak itself, we should grant them the same permission.
    
    https://gitlab.gnome.org/GNOME/gnome-builder/merge_requests/95

 src/plugins/flatpak/gbp-flatpak-runner.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runner.c b/src/plugins/flatpak/gbp-flatpak-runner.c
index fc2b4f6ee..41d1bde3a 100644
--- a/src/plugins/flatpak/gbp-flatpak-runner.c
+++ b/src/plugins/flatpak/gbp-flatpak-runner.c
@@ -120,6 +120,8 @@ gbp_flatpak_runner_fixup_launcher (IdeRunner             *runner,
       ide_subprocess_launcher_insert_argv (launcher, i++, "--socket=wayland");
     }
 
+  ide_subprocess_launcher_insert_argv (launcher, i++, "--talk-name=org.freedesktop.portal.*");
+
   /* Proxy environment stuff to the launcher */
   if ((env = ide_runner_get_environment (runner)) &&
       (environ = ide_environment_get_environ (env)))


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