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 <balaban@yigid.dev>
This commit is contained in:
1 parent
7c9eb4d17a
commit
d961a1d927
1 file changed
+1
@@ -35,6 +35,7 @@ icon:
|
|||||||
|
|
||||||
install: app
|
install: app
|
||||||
-launchctl bootout gui/$$(id -u)/$(LABEL)
|
-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
|
mkdir -p $(HOME)/Applications $(HOME)/Library/LaunchAgents $(HOME)/Library/Logs
|
||||||
rm -rf $(INSTALLED_BUNDLE)
|
rm -rf $(INSTALLED_BUNDLE)
|
||||||
ditto $(BUNDLE) $(INSTALLED_BUNDLE)
|
ditto $(BUNDLE) $(INSTALLED_BUNDLE)
|
||||||
|
|||||||
Reference in new issue
Block a user