title: Sandboxed Helper App can not launch the correct parent application
body: <p>I'm using <a href="http://www.delitestudio.com/2011/10/25/start-dockless-apps-at-login-with-app-sandbox-enabled/" rel="nofollow">this tutorial</a> to add a Login Item to my application. Most of it works as expected, I've managed to create a sandboxed helper app and register it with the launch services, so it is launched on login as it should be.</p>
  
  <p>Now the problem is that the tutorial is not very specific on how you are supposed to launch your main application bundle from within this helper app. It includes only this:</p>
  
  <pre><code>[[NSWorkspace sharedWorkspace] launchApplication:
  @"/Path/To/Main/App/Bundle"];
  </code></pre>
  
  <p>But if I try any NSWorkspace method to launch the application with the full path it fails, because Sandbox does not allow this.</p>
  
  <p>If I try setting the argument of the above method to just my app name, it works, but launches, curiously, an older version of my app (I have these stored on my HDD, but they are not in the /Applications folder, only the correct version of my app is in the /Applications folder)</p>
  
  <p>Does anybody now why this happens, or how could I fix this?</p>