From 398b98861fc4a474405c745a45952330fc49bfd8 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 12 Apr 2023 00:35:32 -0400 Subject: [PATCH] Wait on xdg-desktop-portal --- dot_local/bin/executable_pipewire-launcher | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_local/bin/executable_pipewire-launcher b/dot_local/bin/executable_pipewire-launcher index a6a2550..2eb3a80 100644 --- a/dot_local/bin/executable_pipewire-launcher +++ b/dot_local/bin/executable_pipewire-launcher @@ -8,6 +8,9 @@ while pgrep -u $UID -x wireplumber >/dev/null; do sleep 1; done while pgrep -u $UID -x pipewire >/dev/null; do sleep 1; done while pgrep -u $UID -x pipewire-pulse >/dev/null; do sleep 1; done +# Wait for xdg-desktop-portal to start +until pgrep -u $UID -f /usr/lib/xdg-desktop-portal >/dev/null; do sleep 1; done + # Launch pipewire echo "---" | tee -a /tmp/{wireplumber.log,pipewire.log,pipewire-pulse.log} /usr/bin/wireplumber 2>&1 | tee -a /tmp/wireplumber.log & disown