This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user