Simplify XDG_CONFIG_HOME handling
This commit is contained in:
parent
341bdd2296
commit
aaaef10ccb
1 changed files with 1 additions and 4 deletions
5
proton
5
proton
|
@ -290,10 +290,7 @@ with prefix_lock:
|
|||
vr_config is None or \
|
||||
vr_log is None:
|
||||
try:
|
||||
if "XDG_CONFIG_HOME" in os.environ:
|
||||
path = os.environ["XDG_CONFIG_HOME"]
|
||||
else:
|
||||
path = os.environ["HOME"] + "/.config"
|
||||
path = os.environ.get("XDG_CONFIG_HOME", os.environ["HOME"] + "/.config")
|
||||
path = path + "/openvr/openvrpaths.vrpath"
|
||||
|
||||
with open(path, "r") as jfile:
|
||||
|
|
Loading…
Reference in a new issue