I started having the same problem and basically did the same thing. I just put a wait timer at the start of the script and I have it autostart after logging in.