#!/bin/sh

case "$DESKTOP_SESSION" in
  gnome|kde*|xfce*) # PulseAudio is started via XDG Autostart
  ;;
  *)
     if [ -z "$KDE_FULL_SESSION" -a -z "$GNOME_DESKTOP_SESSION_ID" ]; then
	  /usr/bin/start-pulseaudio-x11
     fi
  ;;
esac
