From 94ad2c5b123a0a3d7739475ccaf2f35656fcdef8 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 26 Oct 2024 22:57:53 +0200 Subject: [PATCH] sand: Stop adding a mount for .exe --- sandwine/_main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sandwine/_main.py b/sandwine/_main.py index 414bc01..5b5b9b7 100644 --- a/sandwine/_main.py +++ b/sandwine/_main.py @@ -376,9 +376,12 @@ def create_bwrap_argv(config): real_argv_0 = os.path.abspath(config.argv_0) mount_tasks += [ MountTask(MountMode.BIND_RO, real_argv_0, required=False), - MountTask(MountMode.BIND_RO, real_argv_0 + ".exe", required=False), - MountTask(MountMode.BIND_RO, real_argv_0 + ".EXE", required=False), ] + if config.with_wine: + mount_tasks += [ + MountTask(MountMode.BIND_RO, real_argv_0 + ".exe", required=False), + MountTask(MountMode.BIND_RO, real_argv_0 + ".EXE", required=False), + ] # Linux Namespaces argv.add(*unshare_args)