diff options
Diffstat (limited to 'extra/pulseaudio/NuTyX_config.patch')
-rw-r--r-- | extra/pulseaudio/NuTyX_config.patch | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/extra/pulseaudio/NuTyX_config.patch b/extra/pulseaudio/NuTyX_config.patch new file mode 100644 index 000000000..585b0e6e8 --- /dev/null +++ b/extra/pulseaudio/NuTyX_config.patch @@ -0,0 +1,94 @@ +--- a/src/daemon/esdcompat.in ++++ b/src/daemon/esdcompat.in +@@ -24,7 +24,19 @@ fail() { + exit 1 + } + +-ARGS=" --log-target=syslog" ++# Modifications de NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++ exit ++fi ++ ++ARGS=" $PULSE_ARGS" ++# Fin des modifications + + while [ "$#" -gt "0" ]; do + +@@ -74,10 +86,10 @@ EOF + shift + ARGS="$ARGS '-Lmodule-esound-compat-spawnfd fd=$1'" + ;; +- +- -unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous) ++ ++ -unix|-b|-public|-terminate|-nobeeps|-trust|-tcp|-promiscuous) + # Ignore these commands +- ;; ++ ;; + + -d|-r|-as|-port|-bind) + # Ignore these commands and their arguments +--- a/src/daemon/start-pulseaudio-x11.in ++++ b/src/daemon/start-pulseaudio-x11.in +@@ -19,7 +19,19 @@ + + set -e + +-@PA_BINARY@ --start "$@" ++# Modifications NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++else ++ ++@PA_BINARY@ --start ${PULSE_ARGS} "$@" ++ ++# Fin des modifications + + if [ x"$DISPLAY" != x ] ; then + +@@ -30,3 +42,5 @@ if [ x"$DISPLAY" != x ] ; then + @PACTL_BINARY@ load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null + fi + fi ++ ++fi +--- a/src/daemon/start-pulseaudio-kde.in ++++ b/src/daemon/start-pulseaudio-kde.in +@@ -21,10 +21,24 @@ set -e + + [ -z "$PULSE_SERVER" ] + +-@PA_BINARY@ --start "$@" ++# Modifications NuTyX ++CONFIG=/etc/sysconfig/sound ++ ++PULSE_ARGS=" --log-target=syslog" ++[ -r "$CONFIG" ] && . $CONFIG ++ ++if [ "$ENABLE_PULSEAUDIO" != "yes" ]; then ++ echo "PulseAudio étant désactivé dans la configuration, il ne sera pas lancé." >&2 ++else ++ ++@PA_BINARY@ --start ${PULSE_ARGS} "$@" ++ ++# Fin des modifications + + if [ x"$DISPLAY" != x ] ; then + + @PACTL_BINARY@ load-module module-device-manager "do_routing=1" > /dev/null + + fi ++ ++fi |