Skip to content

patch alsa config to also look into bundled config dir - #111

Open
Samueru-sama wants to merge 2 commits into
VHSgunzo:mainfrom
Samueru-sama:patch-6
Open

patch alsa config to also look into bundled config dir#111
Samueru-sama wants to merge 2 commits into
VHSgunzo:mainfrom
Samueru-sama:patch-6

Conversation

@Samueru-sama

Copy link
Copy Markdown
Contributor

Setting ALSA_CONFIG_PATH only changes the path to the config file, but the file is still hardcoded to look into /etc/alsa and a few other locations.

@hooks [
	{
		func load
		files [
			"/var/lib/alsa/conf.d"
			"/usr/etc/alsa/conf.d"
			"/etc/alsa/conf.d"
			"/etc/asound.conf|||/usr/etc/asound.conf"
			"~/.asoundrc"
			{
				@func concat
				strings [
					{
						@func getenv
						vars [
							XDG_CONFIG_HOME
						]
						default "~/.config"
					}
					"/alsa/asoundrc"
				]
			}
		]
		errors false
	}
]

So when none of those files are present, alsa crashes lol

This patch makes alsa look into the bundled $SHARUN_DIR/share/alsa/alsa.conf.d to avoid such crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant