proton: Store original LD_LIBRARY_PATH before modifying it

Some parts of Wine will invoke system binaries, which should not use
Proton's libraries.
This commit is contained in:
Vincent Povirk 2020-04-01 11:49:02 -05:00 committed by Andrew Eikum
parent b2f97cac09
commit aaeb4445f3

4
proton
View File

@ -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: