proton: Also lock the prefix
This commit is contained in:
parent
7a20ea9c1f
commit
5b3ceebc20
1 changed files with 113 additions and 111 deletions
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 a new issue