From 9ff638cb9062b1690506dafdcf1e6fd16f71084c Mon Sep 17 00:00:00 2001 From: Hoshino Lina Date: Wed, 21 Jan 2026 21:53:22 +0900 Subject: [PATCH] proton: Preserve WINEDLLPATH entries from host environment --- proton | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 989e23460a..adf3549a66 100755 --- a/proton +++ b/proton @@ -1499,7 +1499,10 @@ class Session: prepend_to_env_str(self.env, ld_path_var, g_proton.lib_dir + "x86_64-linux-gnu:" + g_proton.lib_dir + "i386-linux-gnu", ":") - self.env["WINEDLLPATH"] = ':'.join([g_proton.lib_dir + "vkd3d", g_proton.lib_dir + "wine"]) + dllpaths = [g_proton.lib_dir + "vkd3d", g_proton.lib_dir + "wine"] + if "WINEDLLPATH" in os.environ: + dllpaths.append(os.environ["WINEDLLPATH"]) + self.env["WINEDLLPATH"] = ':'.join(dllpaths) self.env["GST_PLUGIN_SYSTEM_PATH_1_0"] = g_proton.lib_dir + "x86_64-linux-gnu/gstreamer-1.0" + ":" + g_proton.lib_dir + "i386-linux-gnu/gstreamer-1.0" self.env["WINE_GST_REGISTRY_DIR"] = g_compatdata.path("gstreamer-1.0/")