I'm using Mac OS Catalina 10.15.7 and I'd like to open some apps after boot with a cron tab. I use the following cron tab:

@reboot /bin/bash /Users/x/script.sh

if I run the script, it works as I want to, but cron executions fails with the following error:

LSOpenURLsWithRole() failed with error -610 for the file ... 

because, as noted in this answer, GUI apps can't be run before an user is logged to the GUI. Is there anything I can do? I was thinking about the possibility of a keyword that ran after login, not after boot. How may I achieve this?



You must log in to answer this question.

Browse other questions tagged .