From 72c3be5dfaa6c898770a620743bb5e4820a4987a Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Sat, 20 Nov 2021 13:48:50 +0500 Subject: [PATCH] Mount pulse and pipewire sockets Mount pulse and pipewire sockets at SANDBOX_LEVEL 2+, oherwise sound will not work for pulseaudio and pipewire users. With SANDBOX disabled or at SANDBOX_LEVEL 1 this is not a problem, since the entire XDG_RUNTIME_DIR gets mounted. --- conty-start.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conty-start.sh b/conty-start.sh index e5d3a56..7578302 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -12,7 +12,7 @@ if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then exit 1 fi -script_version="1.18" +script_version="1.18.1" # Full path to the script script_literal="${BASH_SOURCE[0]}" @@ -43,7 +43,7 @@ mount_point="${working_dir}"/mnt # a problem with mounting the image due to an incorrectly calculated offset. # The size of this script -scriptsize=25024 +scriptsize=25224 # The size of the utils archive utilssize=2928770 @@ -580,6 +580,8 @@ run_bwrap () { sandbox_params="${sandbox_params} \ --dir ${XDG_RUNTIME_DIR} \ --ro-bind-try ${XDG_RUNTIME_DIR}/${wayland_socket} ${XDG_RUNTIME_DIR}/${wayland_socket} \ + --ro-bind-try ${XDG_RUNTIME_DIR}/pulse ${XDG_RUNTIME_DIR}/pulse \ + --ro-bind-try ${XDG_RUNTIME_DIR}/pipewire-0 ${XDG_RUNTIME_DIR}/pipewire-0 \ --unshare-pid \ --unshare-user-try \ --unsetenv DBUS_SESSION_BUS_ADDRESS"