From d961a1d927b25860b358fde1f0ff3220c8cce005 Mon Sep 17 00:00:00 2001 From: Yigit BALABAN Date: Sat, 31 Oct 2026 00:21:41 +0300 Subject: [PATCH] Wait for launchd to release mxd before reinstalling launchctl bootout returns while mxd is still restoring its buttons, so an immediate bootstrap failed with "5: Input/output error". Poll for up to 10 s until the service is gone. Assisted-by: Claude Sonnet 5.5 Signed-off-by: Yigit BALABAN --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ae58df0..323697a 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ icon: install: app -launchctl bootout gui/$$(id -u)/$(LABEL) + @for attempt in $$(seq 50); do launchctl print gui/$$(id -u)/$(LABEL) >/dev/null 2>&1 || break; sleep 0.2; done mkdir -p $(HOME)/Applications $(HOME)/Library/LaunchAgents $(HOME)/Library/Logs rm -rf $(INSTALLED_BUNDLE) ditto $(BUNDLE) $(INSTALLED_BUNDLE)