Use steamuser as proton username

This commit is contained in:
Andrew Eikum 2018-01-19 14:01:37 -06:00
parent 19e31c24ff
commit c162f4bd00
2 changed files with 8 additions and 3 deletions

9
proton
View file

@ -89,7 +89,6 @@ if not os.path.isdir(prefix + "/drive_c"):
os.makedirs(dst) os.makedirs(dst)
shutil.copy(basedir + "/dist/lib/wine/fakedlls/vrclient.dll", dst) shutil.copy(basedir + "/dist/lib/wine/fakedlls/vrclient.dll", dst)
shutil.copy(basedir + "/dist/lib64/wine/fakedlls/vrclient_x64.dll", dst) shutil.copy(basedir + "/dist/lib64/wine/fakedlls/vrclient_x64.dll", dst)
os.makedirs(prefix + "/drive_c/users/" + env["USER"] + "/Local Settings/Application Data/openvr")
#parse linux openvr config and present it in win32 format to the app. #parse linux openvr config and present it in win32 format to the app.
#logic from openvr's CVRPathRegistry_Public::GetPaths #logic from openvr's CVRPathRegistry_Public::GetPaths
@ -134,8 +133,14 @@ if vr_runtime is None or \
except: except:
pass pass
try:
os.makedirs(prefix + "/drive_c/users/steamuser/Local Settings/Application Data/openvr")
except:
#already exists
pass
#remove existing file #remove existing file
vrpaths_name = prefix + "/drive_c/users/" + env["USER"] + "/Local Settings/Application Data/openvr/openvrpaths.vrpath" vrpaths_name = prefix + "/drive_c/users/steamuser/Local Settings/Application Data/openvr/openvrpaths.vrpath"
if os.path.exists(vrpaths_name): if os.path.exists(vrpaths_name):
os.remove(vrpaths_name) os.remove(vrpaths_name)

2
wine

@ -1 +1 @@
Subproject commit 8e579a316e7115e3fd6b45b9d7a996e96c061a90 Subproject commit f58ff9b366e3fd7de0092b80a908bc19c1ebf0d8