public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [flatpaks/flatpak-runtime] f45: Do not read ~/.asoundrc by default
Date: Fri, 11 Sep 2026 14:43:19 GMT [thread overview]
Message-ID: <178913779999.1.3391252619224790646.flatpaks-flatpak-runtime-92d682ab44a5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : flatpaks/flatpak-runtime
Branch : f45
Commit : 92d682ab44a5bd32081a8369cc478cea50927c76
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-03-02T21:13:16-05:00
Stats : +12/-0 in 2 file(s)
URL : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/92d682ab44a5bd32081a8369cc478cea50927c76?branch=f45
Log:
Do not read ~/.asoundrc by default
The user host configuration (which would be readable when --filesystem=home
is used) is likely to be wrong inside of a flatpak. Also, ignore user-set
ALSA_CONFIG_* environment variables for the same reason.
https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/857
---
diff --git a/container-sdk.in.yaml b/container-sdk.in.yaml
index 6da6cd3..71bb1a3 100644
--- a/container-sdk.in.yaml
+++ b/container-sdk.in.yaml
@@ -6,6 +6,8 @@ flatpak:
branch: @RELEASE@
runtime: @ID_PREFIX@.Platform
finish-args: >
+ --env=ALSA_CONFIG_DIR=/usr/share/alsa
+ --env=ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf
--env=GI_TYPELIB_PATH=/app/lib64/girepository-1.0
--env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
--env=LUA_PATH="/app/share/lua/5.4/?.lua;/app/share/lua/5.4/?/init.lua;/app/lib64/lua/5.4/?.lua;/app/lib64/lua/5.4/?/init.lua;;"
@@ -49,6 +51,10 @@ flatpak:
cat /etc/ld.so.conf.d/*.conf > /etc/ld.so.conf
rm -f /etc/ld.so.conf.d/*.conf
+ # User ALSA configuration can conflict with flatpak setup
+ # https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/857
+ sed -e '/~\/\.asoundrc/d' -e 's|/alsa/asoundrc|/asound.conf|' /usr/share/alsa/alsa.conf
+
# Create a directory for mounting extension points
mkdir -p /usr/lib64/GL
mkdir -p /usr/lib64/openh264
diff --git a/container.in.yaml b/container.in.yaml
index cb7fcfe..e5a7187 100644
--- a/container.in.yaml
+++ b/container.in.yaml
@@ -6,6 +6,8 @@ flatpak:
branch: @RELEASE@
sdk: @ID_PREFIX@.Sdk
finish-args: >
+ --env=ALSA_CONFIG_DIR=/usr/share/alsa
+ --env=ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf
--env=GI_TYPELIB_PATH=/app/lib64/girepository-1.0
--env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
--env=LUA_PATH="/app/share/lua/5.4/?.lua;/app/share/lua/5.4/?/init.lua;/app/lib64/lua/5.4/?.lua;/app/lib64/lua/5.4/?/init.lua;;"
@@ -50,6 +52,10 @@ flatpak:
cat /etc/ld.so.conf.d/*.conf > /etc/ld.so.conf
rm -f /etc/ld.so.conf.d/*.conf
+ # User ALSA configuration can conflict with flatpak setup
+ # https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/857
+ sed -e '/~\/\.asoundrc/d' -e 's|/alsa/asoundrc|/asound.conf|' /usr/share/alsa/alsa.conf
+
# Create a directory for mounting extension points
mkdir -p /usr/lib64/GL
mkdir -p /usr/lib64/openh264
reply other threads:[~2026-09-11 14:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178913779999.1.3391252619224790646.flatpaks-flatpak-runtime-92d682ab44a5@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox