mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.68k stars 379 forks source link

Pipewire/Pulseaudio authentication issue in native Xorg session. #545

Open kuandai opened 1 week ago

kuandai commented 1 week ago

This technically isn't an issue with x11docker itself, but I can't find a better place to ask this question

In short, I have a docker image based off of x11docker/xfce with the necessary packages for pulseaudio forwarding installed. When I would launch a container using the arguments listed below, everything would appear to work fine, except audio. However, switching to a regular X11 or Wayland session, or a TTY in which I am authenticated, the audio would begin to play. Switching to an unauthenticated TTY or the X11 session of the container would cause the audio to cut out.

Here are the launch arguments I used

x11docker --backend=docker -I --desktop --pulseaudio=host --sudouser --init=systemd --gpu myimage

I've been trying to fix this for a while, any help is greatly appreciated 🙏.