mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-04 15:30:30 +01:00
The previous approach to loading config files was to ask WP for the directory and then search those for the config files. This patch changes the approach - a caller now asks WP to search for a specific config file or iterate over a config file directory. This allows us to implement a directory lookup order, i.e. "wireplumber.conf" may be in XDG_CONFIG_DIR, /etc/, /usr/share and the first one found is used. For configuration directories, the new method iterates over all matching entries (files + directories) and invokes a callback for each entry. This enables distributions to ship default files in /usr/share/wireplumber but have admins and users override them on a local basis. For lua scripts in particular, overriding a distribution-provided file with an empty file effectively disables it, adding a file adds it in the right sort order. |
||
|---|---|---|
| .. | ||
| c_api | ||
| lua_api | ||
| c_api.rst | ||
| community.rst | ||
| contributing.rst | ||
| daemon-configuration.rst | ||
| daemon-logging.rst | ||
| index.rst | ||
| installing-wireplumber.rst | ||
| lua_api.rst | ||
| meson.build | ||
| releases.rst | ||
| running-wireplumber-daemon.rst | ||
| testing.rst | ||