mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
12 lines
301 B
Bash
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
|