From 41d64de461d0337c0b8613a531062db97f0423de Mon Sep 17 00:00:00 2001 From: Josevi Date: Tue, 18 Aug 2026 11:12:45 +0200 Subject: [PATCH] pkgsync: notify-send con timeout, no debe poder colgar pkgsync-pull.service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un StartServiceByName de D-Bus atascado hizo que notify-send se colgara, comiéndose el TimeoutStartSec=60 del servicio systemd y matándolo (probado en la máquina real). Acotado a 5s como los git ls-remote/clone/pull. --- pkgsync/pkgsync.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgsync/pkgsync.sh b/pkgsync/pkgsync.sh index 18509c6..d2cce0f 100644 --- a/pkgsync/pkgsync.sh +++ b/pkgsync/pkgsync.sh @@ -212,7 +212,11 @@ print_diff() { } notify() { - command -v notify-send &>/dev/null && notify-send --app-name=pkgsync "$1" "$2" + # timeout: notify-send puede colgarse activando por D-Bus el servicio de + # notificaciones si algo va raro en la sesión -- que eso nunca bloquee el + # pull entero (nos pasó una vez: se comió los 60s de TimeoutStartSec del + # servicio systemd y lo mató). + command -v notify-send &>/dev/null && timeout 5 notify-send --app-name=pkgsync "$1" "$2" } # --- subcomandos --------------------------------------------------------------