summaryrefslogtreecommitdiff
path: root/extra/pulseaudio/pulseaudio.xinit
blob: 2d30c09436c828438368c17b6bbaf717ff63f876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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