Post

Replies

Boosts

Views

Activity

LaunchAgent priority
My LaunchAgent is launched when a user logs in. However, it is launched AFTER all Applications that were still open at logout have been restored. Is it possible to increase the priority of a LaunchAgent so that it runs before Applications are restored? I tried setting the Nice value in the plist to -20 but that had no effect. This problem can easily be reproduced by sudo reboot in Terminal when there are multiple applications open. At login all Applications are restored.
8
0
2.4k
May ’22