docker-ubuntu/rootfs/usr/local/bin/chromium-browser-sound.sh
2020-05-11 23:16:03 +08:00

8 lines
255 B
Bash
Executable file

#!/bin/sh
if [ -z "$ALSADEV" ]; then
zenity --error --text "To support audio, please read README.md and run container with --device /dev/snd -e ALSADEV=..."
exit 1
fi
exec /usr/bin/google-chrome --no-sandbox --alsa-output-device="$ALSADEV" "$@"