alsa-mixer: Respect XDG base directory spec when loading path configs
authorSimonP <simonp.git@gmail.com>
Thu, 7 May 2020 15:13:27 +0000 (16:13 +0100)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 14 Dec 2020 19:25:12 +0000 (19:25 +0000)
commit9b0ae8327d990584bb9a966d8d7bee6badbdb8c0
tree84e32a289e25917cf40fcd21a22a1e658215f520
parentcb91d7a12e6be0e2c720d47d2ceca322a7b21d2c
alsa-mixer: Respect XDG base directory spec when loading path configs

Try $XDG_DATA_HOME, then $XDG_DATA_DIRS, and finally fall back to old
behaviour (prefix-defined directory).

core-util: Ignore non-absolute XDG base dirs

These are invalid per the spec.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/862
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/293>
src/modules/alsa/alsa-mixer.c
src/pulsecore/core-util.c
src/pulsecore/core-util.h
src/tests/alsa-mixer-path-test.c