openvr icon indicating copy to clipboard operation
openvr copied to clipboard

openvrpaths.vrpath wrong location on Linux

Open cribalik opened this issue 9 years ago • 3 comments

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

cribalik avatar Jul 03 '16 00:07 cribalik

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

stephenohair avatar Mar 13 '18 13:03 stephenohair

What is the fix?

TH3C4V avatar Jun 17 '24 19:06 TH3C4V

I've had luck making a symbolic link from where the openvrpaths is to where it should be.

in terminal I used

sudo mkdir /root/.config/openvr/

sudo ln -s ~/.config/openvr/openvrpaths.vrpath /root/.config/openvr/openvrpaths.vrpath

ZolaniS avatar Aug 04 '24 13:08 ZolaniS