Allow multiple configuration files
Will merge contents from @CMAKE_INSTALL_PREFIX@/share/wivrn/config.json /etc/wivrn/config.json ~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact) If -f option is provided, just parse that file, don't merge anything
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
# Configurable items
|
||||
|
||||
Configuration is done on server side, in `$XDG_CONFIG_HOME/wivrn/config.json` or if `$XDG_CONFIG_HOME` is not set, `$HOME/.config/wivrn/config.json`.
|
||||
Configuration is done on server side.
|
||||
Files are read from
|
||||
- `/usr/share/wivrn/config.json` (where `/usr` is selected at configure time with `CMAKE_INSTALL_PREFIX`)
|
||||
- `/etc/wivrn/config.json`
|
||||
- `$XDG_CONFIG_HOME/wivrn/config.json` or if `$XDG_CONFIG_HOME` is not set, `$HOME/.config/wivrn/config.json`.
|
||||
|
||||
Files later in the list replace top-level values from previous ones.
|
||||
|
||||
All elements are optional and have default values.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user