mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 08:14:34 +01:00
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…
Add table
Add a link
Reference in a new issue