The login script may be running too early; adding a delay may
help.https://community.jamf.com/t5/jamf-pro/how-to-wait-for-desktop-to-be-ready/m-p/195224/highlight/true#M184012https://community.jamf.com/t5/jamf-pro/how-to-wait-for-desktop-to-be-ready/...
This link has been eaten by link rot. Here is a more sturdy link
courtesy of
bsuggetthttps://github.com/blakeusblade/Jamf-Nation-Scripts/tree/master/InstallPKGFromDMG