mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-13 07:08:10 +03:00
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:
parent
b2f97cac09
commit
aaeb4445f3
4
proton
4
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user