Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > cd650bee77fb40806049afc93fd5f47d > files > 6

pulseaudio-0.9.10-11mdv2009.0.src.rpm

From 041850c075e3d9dca45f983e25f73b80749f1f63 Mon Sep 17 00:00:00 2001
From: Colin Guthrie <development@colin.guthr.ie>
Date: Tue, 5 Aug 2008 20:41:31 +0100
Subject: [PATCH] Some customisations to esdcompat in order to adhere to our way of enabling/disabling pulseaudio

---
 src/daemon/esdcompat.in |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/daemon/esdcompat.in b/src/daemon/esdcompat.in
index 942389d..2d2494b 100755
--- a/src/daemon/esdcompat.in
+++ b/src/daemon/esdcompat.in
@@ -26,7 +26,23 @@ fail() {
     exit 1
 }
 
-ARGS=" --log-target=syslog"
+# Start Mandriva customisation
+if [ -r ~/.pulserc ]; then
+  CONFIG=~/.pulserc
+else
+  CONFIG=/etc/sysconfig/pulseaudio
+fi
+
+PULSE_ARGS="--log-target=syslog"
+[ -r "$CONFIG" ] && . $CONFIG
+
+if [ "$PULSE_SERVER_TYPE" != "personal" ]; then
+  echo "Not starting PulseAudio daemon due to sysconfig setting." >&2
+  exit
+fi
+
+ARGS=" $PULSE_ARGS"
+# End Mandriva customisation
 
 while [ "$#" -gt "0" ]; do
 
-- 
1.5.6.4