Track down all startup & login script and application launches in Mac OS X

Feb 17, 2010 - 6 Comments

Gone are the days of Mac OS System 9 where all startup items were sitting nicely in a system folder labeled ‘Startup’, now with the Unix undercore of Mac OS X things are a bit more complicated beyond the easily accessible ‘Login Items’ preference pane.

Average Users: Startup & Login items in Mac OS X

For the average end user, most apps they want to configure to launch (or not) on boot are actually handled with a login event that’s easily controlled through something like the Dock with a right-click or the “Login Items” listed under user accounts, if that’s what you’re looking for then the average user can see how to launch an application on system start in Mac OS X (which is actually upon user login) and that will likely cover their needs.

Advanced Users: Startup & Login items, apps, and scripts in Mac OS X

This part of the article isn’t for most users! If you’re an advanced user or a systems administrator, that aforementioned preference pane is rarely the end of your hunt to track down startup and login items in Mac OS X. I recently was on a wild goose chase trying to find a rather obnoxious script a user had accidentally installed on a network machine, and this post from SuperUser made my job significantly easier, so for that reason I provide the list to you:

Applications that run on Startup:
/Library/StartupItems

plist items running on startup:
/Library/LaunchDaemons
/System/Library/LaunchDaemons

Applications that launch on User Login:
* First check your “Login Items” for that user account within the Account settings of System Preferences
~/Library/LaunchAgents
/Library/LaunchAgents/
/System/Library/LaunchAgents/

Applications that run on a set schedule:
Check your crontab with crontab -l

Check Kernel Extensions:
In the command line: kextstat

Check Login and Logout Hooks
defaults read com.apple.loginwindow LoginHook for Login
defaults read com.apple.loginwindow LogoutHook for Logout
or see both with:
/usr/libexec/PlistBuddy -c Print

If you don’t know what you’re doing, please don’t mess around in the above directories or commands, you can easily cause more harm than good! These locations serve the core functionality of Mac OS and should only be altered by advanced Mac users and Systems Administrators.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Manish Patel in Mac OS X, Troubleshooting

6 Comments

» Comments RSS Feed

  1. cory says:

    This is great! Thank you. I’ve been looking for something like this.

  2. […] Track down all startup & login script and application launches in Mac OS X – OS X Daily (tags: tips troubleshooting macosx) Post a Comment […]

  3. Nathan says:

    When I’m tracking down shady files like these, I like to hit the “/” key in the File > Open dialog in my text editor… it let’s me type in a path very similar to *nix and even features tab auto-completion!

  4. tzs says:

    “crontab -l” would be better than “crontab -e” for checking your crontab. The former lists the content of your crontab. The latter attempts to edit your crontab.

  5. Ryan says:

    You forgot one of the most important…

    ~/Library/Preferences/com.apple.dock.plist

    Any dock item that has the “Open At Login” option set will automatically be opened. Several applications use this mechanism to launch on login rather than the methods above.

  6. […] startup items – read these two guides for a rundown.  (there are more than you think you have – google the items and […]

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates