Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand config search paths #537

Open
JeroMiya opened this issue Apr 17, 2017 · 0 comments
Open

Expand config search paths #537

JeroMiya opened this issue Apr 17, 2017 · 0 comments

Comments

@JeroMiya
Copy link
Contributor

Moving some review items from this pull request into a new issue:
#534

That pull request adds some basic user-directory search pathing for the config file. This issue expands the search paths on different platforms:

There are more places worth checking, too.

On Linux:

  • $XDG_CONFIG_HOME/osvr/osvr_server_config.json
  • For each colon-separated dir in $XDG_CONFIG_DIRS: $prefix/osvr/osvr_server_config.json
  • /etc/xdg if $XDG_CONFIG_DIRS is not set or empty.
  • /etc/osvr_server_config.json for old-school paths
  • /usr/local/etc/osvr_server_config.json for old-school paths

On macOS:

  • $HOME/Library/Application Support/OSVR/config/osvr_server_config.json
  • /Library/Application Support/OSVR/config/osvr_server_config.json
  • wherever brew installs it by default (I think /usr/local/Cellar/osvr-core/bin/osvr_server_config.json, maybe)
  • /etc/osvr_server_config.json for old-school paths
  • /usr/local/etc/osvr_server_config.json for old-school paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant