From 79c2ff8f09b4618b9a627eb57be0fbe053d249ef Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sat, 16 Aug 2025 14:03:59 +0200 Subject: [PATCH] Update start-notification-service.sh --- start-notification-service.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/start-notification-service.sh b/start-notification-service.sh index 7468d4d8..2d4c5cf0 100644 --- a/start-notification-service.sh +++ b/start-notification-service.sh @@ -6,16 +6,15 @@ echo "[INFO] Starting fake org.freedesktop.Notifications service..." python3 start-notification-service.py & SERVICE_PID=$! +# attendre que le service soit dispo sleep 2 -# Vérifie que le service est bien enregistré -gdbus introspect \ - --session \ - --dest org.freedesktop.Notifications \ - --object-path /org/freedesktop/Notifications || { - echo '[ERROR] Service not running' - exit 1 - } +gdbus introspect --session \ + --dest org.freedesktop.Notifications \ + --object-path /org/freedesktop/Notifications || { + echo '[ERROR] Service not running' + kill $SERVICE_PID + exit 1 +} -# Garde le PID pour pouvoir le tuer après les tests echo $SERVICE_PID > /tmp/notify-service.pid