]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf: add support for XDG_CONFIG_HOME search path
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2020 15:31:32 +0000 (17:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2020 15:34:24 +0000 (17:34 +0200)
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>
src/conf/alsa.conf

index 0e01c887dc28023cd0f7b75f443bde73443afbe1..0837010894c35b74b6c13991e671d10d3f505df2 100644 (file)
                        "/etc/alsa/conf.d"
                        "/etc/asound.conf"
                        "~/.asoundrc"
+                       {
+                               @func concat
+                               strings [
+                                       {
+                                               @func getenv
+                                               vars [
+                                                       XDG_CONFIG_HOME
+                                               ]
+                                               default "~/.config"
+                                       }
+                                       "/alsa/asoundrc"
+                               ]
+                       }
                ]
                errors false
        }