PKGBUILDs/extra/pulseaudio/pulseaudio.xinit
2013-04-01 23:50:22 +00:00

12 lines
301 B
Bash

#!/bin/bash
case "$DESKTOP_SESSION" in
gnome|kde*|xfce*) # PulseAudio is started via XDG Autostart
;;
*)
# Extra checks in case DESKTOP_SESSION is not set correctly
if [[ -z $KDE_FULL_SESSION && -z $GNOME_DESKTOP_SESSION_ID ]]; then
/usr/bin/start-pulseaudio-x11
fi
;;
esac