Skip to content

Expand config search paths #537

Open

Description

@JeroMiya

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions