From b7ad27a00b7c955953282b5ba66ea17e59d02101 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 17:51:19 +0000 Subject: [PATCH] wrap: Don't bind-mount ~/.steam/steambeta etc. if they don't exist This fixes failure to run with --unshare-home on systems where the Steam internal beta has never been used. Signed-off-by: Simon McVittie <smcv@collabora.com> --- src/wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wrap.c b/src/wrap.c index 51c35e2d6..ca7d1fbaf 100644 --- a/src/wrap.c +++ b/src/wrap.c @@ -1608,7 +1608,8 @@ use_fake_home (FlatpakBwrap *bwrap, g_hash_table_add (mounted, g_steal_pointer (&target)); } } - else if (!g_hash_table_contains (mounted, dir)) + else if (g_file_test (dir, G_FILE_TEST_EXISTS) && + !g_hash_table_contains (mounted, dir)) { flatpak_bwrap_add_args (bwrap, "--ro-bind", dir, dir, NULL); g_hash_table_add (mounted, g_steal_pointer (&dir)); -- GitLab