Expose Pipewire socket when it exists

This commit is contained in:
Peter Cai 2024-04-28 15:01:23 -04:00
parent 8fbfd0320c
commit 1e1b305ba0

View file

@ -78,6 +78,11 @@ mkdir -p "$home_path/.local/share"
extra_args=""
# Expose Pipewire socket if it exists
if [ -S "$XDG_RUNTIME_DIR/pipewire-0" ]; then
extra_args="$extra_args -v $XDG_RUNTIME_DIR/pipewire-0:/xdg_runtime/pipewire-0"
fi
# Check if we should allow /dev/input access
if is_in_array "$1" "${DEV_INPUT_APP_ALLOWLIST[@]}"; then
if [ -z "${DEV_INPUT_DEVICE_ALLOWLIST+x}" ]; then