mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
proton: Also lock the prefix
This commit is contained in:
parent
7a20ea9c1f
commit
5b3ceebc20
2
proton
2
proton
@ -113,6 +113,8 @@ with dist_lock:
|
|||||||
prefix = os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx/"
|
prefix = os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx/"
|
||||||
env["WINEPREFIX"] = prefix
|
env["WINEPREFIX"] = prefix
|
||||||
|
|
||||||
|
prefix_lock = FileLock(os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx.lock", timeout=-1)
|
||||||
|
with prefix_lock:
|
||||||
if not os.path.isdir(prefix):
|
if not os.path.isdir(prefix):
|
||||||
#copy default prefix into place
|
#copy default prefix into place
|
||||||
shutil.copytree(basedir + "/dist/share/default_pfx", prefix, symlinks=True)
|
shutil.copytree(basedir + "/dist/share/default_pfx", prefix, symlinks=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user