]> code.delx.au - pulseaudio/blob - src/daemon/start-pulseaudio-x11.in
daemon: consolidate startup scripts
[pulseaudio] / src / daemon / start-pulseaudio-x11.in
1 #!/bin/sh
2
3 # This file is part of PulseAudio.
4 #
5 # PulseAudio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # PulseAudio is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with PulseAudio; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 set -e
21
22 @PA_BINARY@ --start "$@"
23
24 if [ x"$DISPLAY" != x ] ; then
25
26 @PACTL_BINARY@ load-module module-x11-publish "display=$DISPLAY" > /dev/null
27 @PACTL_BINARY@ load-module module-x11-cork-request "display=$DISPLAY" > /dev/null
28
29 if [ x"$KDE_FULL_SESSION" = x"true" ]; then
30 @PACTL_BINARY@ load-module module-device-manager "do_routing=1" > /dev/null
31 fi
32
33 if [ x"$SESSION_MANAGER" != x ] ; then
34 @PACTL_BINARY@ load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
35 fi
36 fi