From edde6779d4c6c279cd43e61bec2e9cbc9227d804 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 28 Aug 2020 13:31:21 -0400 Subject: [PATCH] pulseaudio failsafe for brave/chromium --- .xprofile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.xprofile b/.xprofile index 861443b..2bdbb5b 100755 --- a/.xprofile +++ b/.xprofile @@ -7,6 +7,12 @@ # Add this when you include flatpak in your system dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY +# Autostart Pulseaudio if installed and not already started by init. +# Chromium/Brave doesn't automatically start Pulse for some reason. +[ -x /usr/bin/pulseaudio ] && + ! pidof pulseaudio >/dev/null && + setsid -f pulseaudio --start >/dev/null 2>&1 + mpd & # music player daemon-you might prefer it as a service though remaps & # run the remaps script, switching caps/esc and more; check it for more info setbg & # set the background with the `setbg` script