From 6667f5273fd565c5e9facb496602b1798e90a6df Mon Sep 17 00:00:00 2001
From: Ludovico de Nittis <ludovico.denittis@collabora.com>
Date: Mon, 14 Sep 2020 11:59:08 +0200
Subject: [PATCH] wrap: Correctly bind and propagate from environ when in
 Flatpak container

When we are in a Flatpak container we need to propagate the environment
variables even if they didn't change because Flatpak will be launched
from a different environment (the host system).

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
---
 src/wrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wrap.c b/src/wrap.c
index e20d930dd..92827ea8b 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -427,7 +427,7 @@ bind_and_propagate_from_environ (FlatpakExports *exports,
         }
     }
 
-  if (changed)
+  if (changed || g_file_test ("/.flatpak-info", G_FILE_TEST_IS_REGULAR))
     {
       g_autofree gchar *joined = g_strjoinv (":", values);
 
-- 
GitLab