Launchctl load -w generate Service cannot load in requested session
1
vote
1
answer
457
views
I ran the following command:
launchctl load -w /Library/LaunchAgents/...plist
The plist file has the following values:
KeepAlive
StandardErrorPath
/dev/null
StandardOutPath
/dev/null
LimitLoadToSessionType
Aqua
ProcessType
Interactive
When I run:
sudo launchctl bootstrap gui/501 /Library/LaunchAgents/...plist`
I got
/Applications/...app/Contents/scripts/...plist: Service is disabled
And then I ran:
launchctl load -w /Library/LaunchAgents/...plist
with the error:
Service cannot load in requested session
Asked by Marisol Gonzalez
(11 rep)
Jan 9, 2023, 06:08 AM
Last activity: May 29, 2025, 08:01 AM
Last activity: May 29, 2025, 08:01 AM