From 26524e09ce72d0d4642d0a0964a5a8cdf51bb294 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 8 May 2024 11:08:06 -0400 Subject: [PATCH] Launch realm when PulseAudio and Wayland sockets are ready --- .../citadel-config/files/systemd/launch-default-realm.path | 3 ++- .../citadel-config/files/systemd/launch-default-realm.service | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.path b/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.path index a79a9dc..e6a23e7 100644 --- a/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.path +++ b/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.path @@ -1,5 +1,6 @@ [Unit] -Description=Wait for creation of /run/user/1000/pulse/native +Description=Wait for creation of PA and Wayland sockets before launching first realm. [Path] PathChanged=/run/user/1000/pulse/native +PathChanged=/run/user/1000/wayland-0 diff --git a/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.service b/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.service index 2dc6683..90170b7 100644 --- a/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.service +++ b/meta-citadel/recipes-citadel/citadel-config/files/systemd/launch-default-realm.service @@ -2,6 +2,8 @@ Description=Launch default realm ConditionPathExists=!/run/realms ConditionPathExists=/realms/default.realm +ConditionPathExists=/run/user/1000/pulse/native +ConditionPathExists=/run/user/1000/wayland-0 [Service]