From c162f4bd003402df091eaecd78c75062ade866ee Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 19 Jan 2018 14:01:37 -0600 Subject: [PATCH] Use steamuser as proton username --- proton | 9 +++++++-- wine | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/proton b/proton index 2c5a56ce..1c32740f 100755 --- a/proton +++ b/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) diff --git a/wine b/wine index 8e579a31..f58ff9b3 160000 --- a/wine +++ b/wine @@ -1 +1 @@ -Subproject commit 8e579a316e7115e3fd6b45b9d7a996e96c061a90 +Subproject commit f58ff9b366e3fd7de0092b80a908bc19c1ebf0d8