headphoned 1.9 "Hold The Line" released
[headphoned.git] / headphoned.launch
blob68b5079db594dce810c535b14c8befc52792bb19
1 #!/bin/sh
3 # Obtain the D-Bus session bus address
4 . /tmp/session_bus_address.user
6 # Add the headphoned FIFO to MPlayer's global configuration
7 CONFIG_LINE="input:file=/etc/headphoned/mplayer-input"
8 MPLAYER_CONF="/etc/mplayer/mplayer.conf"
9 if [ -f "$MPLAYER_CONF" ]; then
10 if ! grep "$CONFIG_LINE" "$MPLAYER_CONF" >/dev/null; then
11 echo -n "Updating $MPLAYER_CONF... "
12 echo $CONFIG_LINE >>$MPLAYER_CONF
13 echo "done."
16 # End Add the headphoned FIFO to MPlayer's global configuration
18 /usr/sbin/headphoned &