conf: add support for XDG_CONFIG_HOME search path

Include $XDG_CONFIG_HOME/alsa/asoundrc _or_ ~/.config/alsa/asoundrc as
the last user-defined configuration.

BugLink: https://github.com/alsa-project/alsa-lib/issues/49
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-04 17:31:32 +02:00
parent 1fa7d670f8
commit 577df365f6

View file

@ -11,6 +11,19 @@
"/etc/alsa/conf.d" "/etc/alsa/conf.d"
"/etc/asound.conf" "/etc/asound.conf"
"~/.asoundrc" "~/.asoundrc"
{
@func concat
strings [
{
@func getenv
vars [
XDG_CONFIG_HOME
]
default "~/.config"
}
"/alsa/asoundrc"
]
}
] ]
errors false errors false
} }