Could you please clarify the supported caller arrangement for this case?
A signed app, Example.app, registers a fixed LaunchAgent for user E using
SMAppService.agent(plistName:). The plist is in the app's
Contents/Library/LaunchAgents directory.
A separately launched, same-team-signed helper is already running as ordinary
user E in the same user-login/bootstrap context. It is a bare executable at
Example.app/Contents/MacOS/StopHelper, without its own nested .app bundle.
After the original main-app process exits, this helper reconstructs
SMAppService.agent(plistName:) for that plist and calls
unregister(completionHandler:).
Apple's GUI-less sample
already demonstrates a fresh invocation of the owning app's main executable
reconstructing and unregistering its service. The
agent factory documentation
refers to the calling app's plist directory.
Does the separate embedded helper in this case resolve to the containing
app's original registration, and may it unregister that same user's service?
How does ServiceManagement establish the calling-app association, and what
documented signing, packaging, execution-context or macOS-version requirements
apply? If this helper arrangement is unsupported, could you identify the relevant
caller-association restriction and confirm whether the owning main-executable
approach demonstrated in Apple's sample remains applicable?
This question concerns caller-to-registration association. Process protection,
reactivation prevention and complete job-termination verification are separate
obligations. No re-registration or arbitrary cross-user control is proposed.
Thank you for your guidance.
1
0
85