proton: Also lock the prefix

This commit is contained in:
Andrew Eikum 2018-03-16 10:39:04 -05:00
parent 7a20ea9c1f
commit 5b3ceebc20

2
proton
View File

@ -113,6 +113,8 @@ with dist_lock:
prefix = os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx/"
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):
#copy default prefix into place
shutil.copytree(basedir + "/dist/share/default_pfx", prefix, symlinks=True)