mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-13 23:28:16 +03:00
Use steamuser as proton username
This commit is contained in:
parent
19e31c24ff
commit
c162f4bd00
9
proton
9
proton
@ -89,7 +89,6 @@ if not os.path.isdir(prefix + "/drive_c"):
|
||||
os.makedirs(dst)
|
||||
shutil.copy(basedir + "/dist/lib/wine/fakedlls/vrclient.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.
|
||||
#logic from openvr's CVRPathRegistry_Public::GetPaths
|
||||
@ -134,8 +133,14 @@ if vr_runtime is None or \
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
os.makedirs(prefix + "/drive_c/users/steamuser/Local Settings/Application Data/openvr")
|
||||
except:
|
||||
#already exists
|
||||
pass
|
||||
|
||||
#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):
|
||||
os.remove(vrpaths_name)
|
||||
|
||||
|
2
wine
2
wine
@ -1 +1 @@
|
||||
Subproject commit 8e579a316e7115e3fd6b45b9d7a996e96c061a90
|
||||
Subproject commit f58ff9b366e3fd7de0092b80a908bc19c1ebf0d8
|
Loading…
x
Reference in New Issue
Block a user