1 2 3 4 5 6 7
#!/bin/sh case "$SESSION" in GNOME|KDE*|xfce4) # PulseAudio is started via XDG Autostart ;; *) /usr/bin/start-pulseaudio-x11 ;; esac