From 2c9473e43b9b25ff13e1d8a1daa32fd1395e1d4e Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 30 Jul 2019 19:19:01 +0100 Subject: [PATCH] wrap: Log the modified environment in which we will run bubblewrap Signed-off-by: Simon McVittie <smcv@collabora.com> --- src/wrap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wrap.c b/src/wrap.c index 979a656b2..1e1a271a0 100644 --- a/src/wrap.c +++ b/src/wrap.c @@ -2043,6 +2043,16 @@ main (int argc, quoted = g_shell_quote (g_ptr_array_index (bwrap->argv, i)); g_message ("\t%s", quoted); } + + g_message ("%s environment:", bwrap_executable); + + for (i = 0; bwrap->envp != NULL && bwrap->envp[i] != NULL; i++) + { + g_autofree gchar *quoted = NULL; + + quoted = g_shell_quote (bwrap->envp[i]); + g_message ("\t%s", quoted); + } } /* flatpak_bwrap_finish did this */ -- GitLab