title: Mac OS - add app to autostart with launchctl
body: <p>I can start application with launchctl like this: launchctl submit -l ProgramName -- open -g -b com.company.ProgramName and it works great! I can kill app, and it'll re-run again even if it crashes.</p>
  
  <p>But when i logout or reboot Mac, my process is no longer run. Or, in some cases, it runs not with ProgramName (whitch is my application name), but with name of executable file in ProgramName.app/Contents/MacOS/program_name</p>
  
  <p>Such situation with plist files. I run command launchctl -w /Users/my_username/Library/LaunchAgents and process works fine! But after restart i can't see it.</p>
  
  <p>I prefer first method to load processes, any suggestions why process doesn't autoload after reboot?</p>