mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 08:14:34 +01: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
1 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue