mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 10:27:58 +02:00
Previously files would be sorted across all configuration dirs so their filename was all that mattered, not the priority of the directory. Ex. you could get: - /etc/wireplumber/10-foo.conf - /usr/share/wireplumber/20-bar.conf - $XDG_CONFIG_HOME/wireplumber/30-baz.conf - /usr/share/wireplumber/40-zzz.conf This commit changes that so that it follows the hirerachy of the directories first and then the order of the filenames, starting from the lowest priority directory. So now for the same files you get: - /usr/share/wireplumber/20-bar.conf - /usr/share/wireplumber/40-zzz.conf - /etc/wireplumber/10-foo.conf - $XDG_CONFIG_HOME/wireplumber/30-baz.conf In addition, the hash table is avoided, making things a bit more efficient and the files are checked for G_FILE_TEST_IS_REGULAR Shadowing of files still works the same, so in the above example if /etc/wireplumber/30-baz.conf also exists, it is not returned in the list, because it's shadowed by $XDG_CONFIG_HOME/wireplumber/30-baz.conf |
||
|---|---|---|
| .. | ||
| wp | ||
| meson.build | ||