mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-27 09:58:25 +01:00
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.
This commit is contained in:
parent
cd281ceac1
commit
72c3be5dfa
1 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,7 @@ if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script_version="1.18"
|
script_version="1.18.1"
|
||||||
|
|
||||||
# Full path to the script
|
# Full path to the script
|
||||||
script_literal="${BASH_SOURCE[0]}"
|
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.
|
# a problem with mounting the image due to an incorrectly calculated offset.
|
||||||
|
|
||||||
# The size of this script
|
# The size of this script
|
||||||
scriptsize=25024
|
scriptsize=25224
|
||||||
|
|
||||||
# The size of the utils archive
|
# The size of the utils archive
|
||||||
utilssize=2928770
|
utilssize=2928770
|
||||||
|
@ -580,6 +580,8 @@ run_bwrap () {
|
||||||
sandbox_params="${sandbox_params} \
|
sandbox_params="${sandbox_params} \
|
||||||
--dir ${XDG_RUNTIME_DIR} \
|
--dir ${XDG_RUNTIME_DIR} \
|
||||||
--ro-bind-try ${XDG_RUNTIME_DIR}/${wayland_socket} ${XDG_RUNTIME_DIR}/${wayland_socket} \
|
--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-pid \
|
||||||
--unshare-user-try \
|
--unshare-user-try \
|
||||||
--unsetenv DBUS_SESSION_BUS_ADDRESS"
|
--unsetenv DBUS_SESSION_BUS_ADDRESS"
|
||||||
|
|
Loading…
Reference in a new issue