Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set default pulseaudio sink if daemon is already running

  • Loading branch information...
commit ad36b59875bd3dc2be511d5a0cad5a6891d1907c 1 parent 2761d27
@kmoore134 kmoore134 authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 src-qt4/xtrafiles/local/share/pcbsd/xstartup/startpulseaudio.sh
View
10 src-qt4/xtrafiles/local/share/pcbsd/xstartup/startpulseaudio.sh
@@ -12,10 +12,10 @@ pulseaudio --check
if [ $? -ne 0 ] ; then
# Start pulseaudio
pulseaudio --start
+fi
- # Get the default unit
- dU=`sysctl hw.snd.default_unit | awk '{print $2}'`
+# Get the default unit
+dU=`sysctl hw.snd.default_unit | awk '{print $2}'`
- # Set the default sink to match default audio device
- pactl set-default-sink $dU
-fi
+# Set the default sink to match default audio device
+pactl set-default-sink $dU
Please sign in to comment.
Something went wrong with that request. Please try again.