Bug 1930713 - don't start pipewire-pulse until pipewire's socket exists. r=jmaher,padenot DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D250032
This commit is contained in:
Julien Cristau
2025-05-19 13:39:02 +00:00
committed by jcristau@mozilla.com
parent 7c34e5d26c
commit 23fe2991ff

View File

@@ -69,6 +69,15 @@ maybe_start_pulse() {
pw_pids=() pw_pids=()
pipewire & pipewire &
pw_pids+=($!) pw_pids+=($!)
SOCKET="$XDG_RUNTIME_DIR/pipewire-0"
attempts=10
while [ ! -S "$SOCKET" ] && [ $attempts -gt 0 ]; do
sleep 0.1
attempts=$((attempts - 1))
done
[ -S "$SOCKET" ] || exit 1
wireplumber & wireplumber &
pw_pids+=($!) pw_pids+=($!)
pipewire-pulse & pipewire-pulse &