From 7ff0d1452fa598ddf88ffb635ed85006a5e871aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 26 Nov 2021 22:37:56 -0500 Subject: bwrap: improve audio support --- bwrap/iceweasel-uxp-private.bash | 6 +++--- bwrap/iceweasel-uxp.bash | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bwrap/iceweasel-uxp-private.bash b/bwrap/iceweasel-uxp-private.bash index f91c3f4..ad827c4 100644 --- a/bwrap/iceweasel-uxp-private.bash +++ b/bwrap/iceweasel-uxp-private.bash @@ -31,7 +31,7 @@ set -euo pipefail --ro-bind /var/cache/fontconfig /var/cache/fontconfig \ --ro-bind /var/lib/alsa /var/lib/alsa \ --bind-try /tmp/sndio /tmp/sndio \ - --bind-try /tmp/sndio-1000 /tmp/sndio-1000 \ + --bind-try /tmp/sndio-"$(id -u)" /tmp/sndio-"$(id -u)" \ --bind-try "${HOME}/.sndio" "${HOME}/.sndio" \ --bind "${HOME}/Descargas" "${HOME}/Descargas" \ --chdir "${HOME}" \ @@ -45,7 +45,7 @@ set -euo pipefail --file 12 /etc/group \ --new-session \ /usr/bin/iceweasel-uxp) \ - 11< <(getent passwd $UID 65534) \ - 12< <(getent group "$(id -g)" 65534) + 11< <(getent passwd $UID 65534 audio) \ + 12< <(getent group "$(id -g)" 65534 audio) # note: running iceweasel-uxp on private mode sanbox diff --git a/bwrap/iceweasel-uxp.bash b/bwrap/iceweasel-uxp.bash index af69846..2b1d0ca 100644 --- a/bwrap/iceweasel-uxp.bash +++ b/bwrap/iceweasel-uxp.bash @@ -32,7 +32,7 @@ set -euo pipefail --ro-bind /var/cache/fontconfig /var/cache/fontconfig \ --ro-bind /var/lib/alsa /var/lib/alsa \ --bind-try /tmp/sndio /tmp/sndio \ - --bind-try /tmp/sndio-1000 /tmp/sndio-1000 \ + --bind-try /tmp/sndio-"$(id -u)" /tmp/sndio-"$(id -u)" \ --bind-try "${HOME}/.sndio" "${HOME}/.sndio" \ --ro-bind "${HOME}/.Xauthority" "${HOME}/.Xauthority" \ --bind "${HOME}/.cache/hyperbola" "${HOME}/.cache/hyperbola" \ @@ -54,7 +54,7 @@ set -euo pipefail --file 12 /etc/group \ --new-session \ /usr/bin/iceweasel-uxp) \ - 11< <(getent passwd $UID 65534) \ - 12< <(getent group "$(id -g)" 65534) + 11< <(getent passwd $UID 65534 audio) \ + 12< <(getent group "$(id -g)" 65534 audio) # note: running iceweasel-uxp mode sanbox -- cgit v1.2.3