Advertisement
Guest User

start-pulseaudio-x11

a guest
Jan 28th, 2017
6,878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.29 KB | None | 0 0
  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, see <http://www.gnu.org/licenses/>.
  17.  
  18. set -e
  19.  
  20. if [ x"$DISPLAY" != x ] ; then
  21.  
  22.     /usr/bin/pactl load-module module-x11-publish "display=$DISPLAY" > /dev/null
  23.     /usr/bin/pactl load-module module-x11-bell "display=$DISPLAY" "sample=bell.ogg" > /dev/null
  24.     /usr/bin/pactl load-module module-x11-cork-request "display=$DISPLAY" > /dev/null
  25.  
  26.     if [ x"$KDE_FULL_SESSION" = x"true" ]; then
  27.        /usr/bin/pactl load-module module-device-manager "do_routing=1" > /dev/null
  28.     fi
  29.  
  30.     if [ x"$SESSION_MANAGER" != x ] ; then
  31.     /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
  32.     fi
  33. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement