From 1b6b7e218ea4c8b2b3e093db1b9e33db1273d41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakk=C4=B1=20Dizdar?= Date: Mon, 3 May 2021 18:55:11 +0300 Subject: [PATCH] =?UTF-8?q?A=C3=A7=C4=B1l=C4=B1=C5=9Fta=20PulseAudio=20?= =?UTF-8?q?=C3=87al=C4=B1=C5=9Fmas=C4=B1=20i=C3=A7in=20gerekli=20ayarlar?= =?UTF-8?q?=C4=B1=20yapt=C4=B1k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++++++- client.conf | 3 +++ default.pa | 15 +++++++++++++++ dosyalar/etc/xdg/autostart/sound.desktop | 7 +++++++ sound.sh | 8 ++++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 client.conf create mode 100644 default.pa create mode 100644 dosyalar/etc/xdg/autostart/sound.desktop create mode 100644 sound.sh diff --git a/Dockerfile b/Dockerfile index d302d82..f13286b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,11 @@ RUN echo "Europe/Istanbul" > /etc/timezone EXPOSE 5900/tcp ENV DISPLAY=:0.0 -CMD Xspice --port 5900 --auto --vdagent --disable-ticketing $DISPLAY > /dev/null 2>&1 & \ No newline at end of file +ADD dosyalar / +RUN ls -la /etc/xdg/autostart +WORKDIR /oyunparki +COPY ./calistir.sh ./ +COPY ./sound.sh ./ +COPY ./client.conf ./ +COPY ./default.pa ./ +ENTRYPOINT [ "bash", "/oyunparki/calistir.sh" ] \ No newline at end of file diff --git a/client.conf b/client.conf new file mode 100644 index 0000000..87132dd --- /dev/null +++ b/client.conf @@ -0,0 +1,3 @@ +default-sink = fifo +autospawn = no +daemon-binary = /bin/true diff --git a/default.pa b/default.pa new file mode 100644 index 0000000..1aad736 --- /dev/null +++ b/default.pa @@ -0,0 +1,15 @@ +.fail +load-module module-device-restore +load-module module-stream-restore +load-module module-card-restore +load-module module-augment-properties +load-module module-native-protocol-unix +load-module module-default-device-restore +load-module module-rescue-streams +load-module module-suspend-on-idle +load-module module-position-event-sounds +load-module module-x11-publish +set-default-sink fifo +.nofail + +load-module module-console-kit diff --git a/dosyalar/etc/xdg/autostart/sound.desktop b/dosyalar/etc/xdg/autostart/sound.desktop new file mode 100644 index 0000000..0def4cd --- /dev/null +++ b/dosyalar/etc/xdg/autostart/sound.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=OyunParkı PulseAudio +Exec=/oyunparki/sound.sh USERNAME +NoDisplay=true +Terminal=false +Categories= \ No newline at end of file diff --git a/sound.sh b/sound.sh new file mode 100644 index 0000000..0b836ea --- /dev/null +++ b/sound.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +mkdir -p /home/$1/.config/pulse/ +cp /oyunparki/default.pa /home/$1/.config/pulse/ +cp /oyunparki/client.conf /home/$1/.config/pulse/ + +pulseaudio --start \ No newline at end of file -- 2.18.1