Sample Header Ad - 728x90

Open GUI App after reboot with cron

0 votes
0 answers
225 views
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?
Asked by mrbolichi (185 rep)
Mar 16, 2022, 02:54 PM