Apple M2 Pro MacOs: 13.6 (22G120)
In my system extension installer's postInstall script I have launch agent configured for the app as below:
launchctl enable gui/$user_uid/com.mycompany.client.myproduct
launchctl bootstrap gui/501 /Library/LaunchAgents/com.mycompany.myproduct.plist
When I install the software using a local user, the service works fine without any issue and the service is shown listed in 'launchctl list' command:
% launchctl list | grep -i mycompany
84714 0 com.mycompany.client.myproduct
But when I login using on the same machine using a AD (Active Directory) user, the service/agent doesnt start and I don't see any entry service listed in 'launchctl list'.
This is how my plist file looks like:
% defaults read /Library/LaunchAgents/com.mycompany.myproduct.plist
{
CFBundleVersion = "200.200.200.200";
KeepAlive = 1;
Label = "com.mycompany.client.myproduct";
LimitLoadToSessionType = (
Aqua
);
ProgramArguments = (
"/Applications/mycompany.app/Contents/MacOS/Mycompany Module"
);
RunAtLoad = 1;
Version = "200.200.200.200";
}
What am I missing here?