1

I have this jar file that I turned into a dmg. Now, what I would like to have happen is that when a user runs this dmg and installs the application, that this application will always load on startup.

Is this an easy task to complete? Can I do it by modifying the plist file that comes with the package contents or is it much more difficult than that?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user402516
  • 528
  • 1
  • 8
  • 17
  • To do this during installation: http://stackoverflow.com/questions/6947925/add-app-to-osx-login-items-during-a-package-maker-installer-postflight-script – millimoose Nov 30 '11 at 00:21
  • Does "startup" mean boot or login? Is it supposed to run if a different user than the one who installed the dmg logs in? – JWWalker Nov 30 '11 at 00:40

1 Answers1

0

I would look into launchctl for your needs. You can place a .launchd.conf in your user's HOME directory, from the looks of things, that will run automatically at startup.