mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-06-13 10:28:27 +02: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. |
||
|---|---|---|
| .. | ||
| module-default-nodes | ||
| module-lua-scripting | ||
| module-portal-permissionstore | ||
| module-reserve-device | ||
| module-si-audio-adapter | ||
| meson.build | ||
| module-default-nodes-api.c | ||
| module-default-nodes.c | ||
| module-default-profile.c | ||
| module-device-activation.c | ||
| module-ipc.c | ||
| module-lua-scripting.c | ||
| module-metadata.c | ||
| module-mixer-api.c | ||
| module-si-audio-adapter.c | ||
| module-si-audio-endpoint.c | ||
| module-si-node.c | ||
| module-si-standard-link.c | ||