This repository has been archived on 2025-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
podman_examples/setup_pulse.sh
2025-03-19 14:00:04 +00:00

17 lines
423 B
Bash

#!/bin/bash
set -e
# !!
sudo rm -rf /tmp/pulseaudio.socket && true
sudo rm -rf /tmp/pulseaudio.client.conf && true
pactl load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket
cat <<EOT >> /tmp/pulseaudio.client.conf
default-server = unix:/tmp/pulseaudio.socket
# Prevent a server running in the container
autospawn = no
daemon-binary = /bin/true
# Prevent the use of shared memory
enable-shm = false
EOT