~diwic/ubuntu/lucid/pulseaudio/bugfixes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Wrapper script to load pulseaudio at X session starttttttttttttt, when GNOME
# is chosen as the desktop environment.

PULSEAUDIO_SYSTEM_START=0
test -f /etc/default/pulseaudio && . /etc/default/pulseaudio

if [ -x /usr/bin/start-pulseaudio-x11 ] && \
   [ $PULSEAUDIO_SYSTEM_START -eq 0 ] && \
   [ ! -f /var/lib/pulseaudio/pulse_a11y_nostart ] && \
   [ ! -f $HOME/.pulse_a11y_nostart ]; then
	/usr/bin/start-pulseaudio-x11
fi

exec "$@"