2.home-manager/tests/modules/launchd
Eason20000 79e6082586 launchd: treat absent domain as harmless in bootoutAgent
When an agent's launchd.agents.<name>.domain is changed from gui to
user (or the agent is newly installed on a headless macOS system
where the gui/<UID> domain never existed), bootoutAgent attempts to
unload the agent from the old domain first. On such systems, this
fails with: Boot-out failed: 125: Domain does not support specified
action.

The bootoutAgent function only treated "No such process" as a
non-fatal condition (return 2). This change adds the domain-not-exist
error to the same handling path: the agent wasn't running in a domain
that doesn't exist, so we can safely skip the boot-out and proceed
with bootstrap into the new domain.
2026-07-10 08:22:30 -05:00
..
agent-domain.nix launchd: fix user domain agents 2026-06-30 23:39:07 -05:00
agents.nix launchd: treat absent domain as harmless in bootoutAgent 2026-07-10 08:22:30 -05:00
default.nix launchd: add agent domain option 2026-06-24 20:38:38 -05:00
expected-agent.plist launchd: wait for /nix/store before starting agent (#8609) 2026-01-27 21:51:48 -08:00