ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.03k stars 1.27k forks source link

openvrpaths.vrpath wrong location on Linux #179

Open cribalik opened 8 years ago

cribalik commented 8 years ago

The linux64 binary seems to look for the openvrpaths.vrpath file under $HOME/.config/openvr, but steam installs it under $HOME/.openvr.

stephenohair commented 6 years ago

Forgive me for seeing the irony in this issue, a library with the wrong path to a file defining paths. Jokes aside, looks like it's checking for the presence of an $XDG_CONFIG_HOME environment variable which may vary on distros, when not set it defaults to $HOME/.config in most common distros.

Check what echo $XDG_CONFIG_HOME displays for your environment.

https://github.com/ValveSoftware/openvr/blob/d35c04ca3d7ddb762afa4a1c6c4a9d5de992cda7/src/vrcommon/vrpathregistry_public.cpp#L71-L93

It appears that the steam-for-linux project only partially adopt the XDG Base spec. https://github.com/ValveSoftware/steam-for-linux/issues/1890

TH3C4V commented 4 weeks ago

What is the fix?