I am having troubles getting a program I made using SDL to automatically run at start up. I have tried everything I've done substituting another program and it works fine. I have even tried using a shell script to wait 10 seconds for everything else to boot, then run the program to no avail.

Is there a way to make sure it is the very last item in the startup list or something? I figure it's starting before something else very important that it needs.