From aaeb4445f3a5e658f0d5f3c123533f1e81fe4db3 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 1 Apr 2020 11:49:02 -0500 Subject: [PATCH] proton: Store original LD_LIBRARY_PATH before modifying it Some parts of Wine will invoke system binaries, which should not use Proton's libraries. --- proton | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proton b/proton index d4a49abd6..1f32b4904 100755 --- a/proton +++ b/proton @@ -414,6 +414,10 @@ class Session: self.env.pop("WINEARCH", "") + if 'ORIG_'+ld_path_var not in os.environ: + # Allow wine to restore this when calling an external app. + self.env['ORIG_'+ld_path_var] = os.environ.get(ld_path_var, '') + if ld_path_var in os.environ: self.env[ld_path_var] = g_proton.lib64_dir + ":" + g_proton.lib_dir + ":" + os.environ[ld_path_var] else: