From f8edd988b34e438613d6e0e28ff87b70587a59c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 27 Mar 2023 18:34:05 +0200 Subject: [PATCH] configure pulseaudio from env. (#39) --- Dockerfile | 5 +---- Dockerfile.nvidia | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a723f00..f1ea73a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,10 +103,6 @@ RUN set -eux; \ adduser $USERNAME video; \ adduser $USERNAME pulse; \ # - # setup pulseaudio - mkdir -p /home/$USERNAME/.config/pulse/; \ - echo "default-server=unix:/tmp/pulseaudio.socket" > /home/$USERNAME/.config/pulse/client.conf; \ - # # workaround for an X11 problem: http://blog.tigerteufel.de/?p=476 mkdir /tmp/.X11-unix; \ chmod 1777 /tmp/.X11-unix; \ @@ -154,6 +150,7 @@ COPY runtime/fonts /usr/local/share/fonts # set default envs ENV USER=$USERNAME ENV DISPLAY=:99.0 +ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket ENV NEKO_SERVER_BIND=:8080 ENV NEKO_PLUGINS_ENABLED=true ENV NEKO_PLUGINS_DIR=/etc/neko/plugins/ diff --git a/Dockerfile.nvidia b/Dockerfile.nvidia index 22daae35..df8396c2 100644 --- a/Dockerfile.nvidia +++ b/Dockerfile.nvidia @@ -119,10 +119,6 @@ RUN set -eux; \ adduser $USERNAME video; \ adduser $USERNAME pulse; \ # - # setup pulseaudio - mkdir -p /home/$USERNAME/.config/pulse/; \ - echo "default-server=unix:/tmp/pulseaudio.socket" > /home/$USERNAME/.config/pulse/client.conf; \ - # # workaround for an X11 problem: http://blog.tigerteufel.de/?p=476 mkdir /tmp/.X11-unix; \ chmod 1777 /tmp/.X11-unix; \ @@ -199,6 +195,7 @@ COPY runtime/fonts /usr/local/share/fonts # set default envs ENV USER=$USERNAME ENV DISPLAY=:99.0 +ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket ENV NEKO_SERVER_BIND=:8080 ENV NEKO_PLUGINS_ENABLED=true ENV NEKO_PLUGINS_DIR=/etc/neko/plugins/