summaryrefslogtreecommitdiff
path: root/portal
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-01-12 10:09:18 +0000
committerAlexander Larsson <alexander.larsson@gmail.com>2021-01-14 09:33:24 +0100
commit4ac11066908ddb62a456c8dbdfa11cce643e9e11 (patch)
tree20b89b4ae4e15155cd20e492fbde2bb77ca8b703 /portal
parentd19f6c330aa42e17df6dc36d12b6f4dfa507dbb3 (diff)
downloadflatpak-4ac11066908ddb62a456c8dbdfa11cce643e9e11.tar.gz
portal: Add a note about CLEAR_ENV behaviour
This seems like something to fix later, outside embargo. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'portal')
-rw-r--r--portal/flatpak-portal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/portal/flatpak-portal.c b/portal/flatpak-portal.c
index 28ce22d5..41dbbfbb 100644
--- a/portal/flatpak-portal.c
+++ b/portal/flatpak-portal.c
@@ -990,6 +990,11 @@ handle_spawn (PortalFlatpak *object,
fd_map[i].to = ++max_fd;
}
+ /* TODO: Ideally we should let `flatpak run` inherit the portal's
+ * environment, in case e.g. a LD_LIBRARY_PATH is needed to be able
+ * to run `flatpak run`, but tell it to start from a blank environment
+ * when running the Flatpak app; but this isn't currently possible, so
+ * for now we preserve existing behaviour. */
if (arg_flags & FLATPAK_SPAWN_FLAGS_CLEAR_ENV)
{
char *empty[] = { NULL };