Skip to content

Instantly share code, notes, and snippets.

@edwardw
Created January 16, 2012 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardw/1622529 to your computer and use it in GitHub Desktop.
Save edwardw/1622529 to your computer and use it in GitHub Desktop.
Launch programs at login in Mac OS X

Three ways to launch a program automatically when Mac OS X starts up: Login items, Startup items and launchd daemons (nicely summarized here).

Login items is very convenient but seems to be only for GUI program. For shell script, it will run but leaves user a visible default editor with script in it! By creating a .plist file and putting it in user's own ~/Library/LaunchAgents directory instead of system-wide /Library/LaunchDaemons, problem solved. This post helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment