chilcote / outset

Automatically process packages, profiles, and scripts during boot, login, or on demand.
572 stars 58 forks source link

fix launchagent load during install by using uid #108

Closed jamesfkane closed 2 years ago

jamesfkane commented 2 years ago

The current method of loading the LaunchAgents during installation is failing. I've attached an installer.log to show the errors (starts on line 86), but both LaunchAgents fail with:

Load failed: 134: Service cannot load in requested session

I'm not sure when this started, but I've verified this on 4 devices now on recent versions of Monterey and Ventura beta. Running launchctl asuser with the UID worked. Borrowed from Nudge's LaunchAgent postinstall for inspiration!

Installer Log 13-Oct-2022.txt