pub fn service_registered() -> bool
Whether launchd currently knows our service in the caller’s gui domain — the live fact, unlike the daemon.persistence file, which only records the outcome of the last daemon startup.
daemon.persistence