From a623d864f4e82012c97f09ebd925287adf5e2532 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Sat, 7 Oct 2017 20:07:33 +0200 Subject: [PATCH] Partially revert f1df5cb to fix --persist We should not check if a persistence target exists outside of the chroot, since its existance is irrelevant. Fixes #1088 Closes: #1089 Approved by: alexlarsson --- common/flatpak-run.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 87c40355..784498ff 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -3083,7 +3083,10 @@ flatpak_run_add_environment_args (GPtrArray *argv_array, g_mkdir_with_parents (src, 0755); - add_bind_arg (argv_array, "--bind", src, dest); + /* We stick to add_args instead of add_bind_arg because persisted + * folders don't need to exist outside the chroot. + */ + add_args (argv_array, "--bind", src, dest, NULL); } }