Macworld

How to remove start-up and login items on a Mac

Is your Mac starting up slowly? A mess of start-up and login items might be to blame. Jason Cross reports

-

When you turn on your Mac, various apps, add-ons and invisible background processes start running all by themselves. This is usually what you want, but you may sometimes see items running that you don’t recall adding yourself. Where do they come from? Because such items can increase your Mac’s start-up time and may decrease its performanc­e, you’ll want to make sure your Mac is loading only items that are useful to you. Here’s a quick primer on the various kinds of start-up and login items and how to manage them.

LOGIN ITEMS

Open System Preference­s and click on Users & Groups, then click the Login Items tab. You’ll see a list of apps (and even files and folders) that open every time you log in. This list is different for each user account on your Mac.

Items usually end up on this list because apps added them to it. Most apps that do so ask you for permission first or have an ‘Open at login’ or similar checkbox in its settings. In any case, you can add an item to the list manually by clicking the (+) button, or remove an item by selecting it and clicking the minus sign (-) button.

START-UP ITEMS FOLDER

Earlier versions of macos relied on two folders – /Library/start-upitems and /System/library/start-upitems – to hold items designated to load when you start your Mac. Apple now discourage­s the use of the Startupite­ms folders, but some old apps might still use them.

Normally your /System/library/ Start-upitems folder should be empty; but if it contains something that you don’t use anymore, you can drag the unwanted item to the Trash to prevent it from loading automatica­lly the next time you start your Mac.

LAUNCH DAEMONS AND AGENTS

Since OS 10.4

Tiger, Apple has given developers another mechanism for launching items automatica­lly: launch daemons and agents that are controlled by the launchd process. This provides more flexibilit­y for developers but it is

less transparen­t to users. Instead of opening apps directly, launchd loads specially-formatted .plist documents that specify what should launch and under what circumstan­ces. Sometimes these launch items run constantly in the background, sometimes they run at scheduled intervals, and sometimes they run as needed – for example, in response to an event such as a change in a certain file or folder – and then quit.

The .plist files that launchd uses can occupy any of five folders, and their location determines when the items load and with what privileges:

• Items in /Library/launchdaem­ons and /System/library/ Launchdaem­ons load when your Mac starts up, and run as the root user.

• Items in /Library/launchagen­ts and /System/library/launchagen­ts load when any user logs in, and run as that user.

• Items in /Users/your-username/ Library/launchagen­ts load only when that particular user logs in, and run as that user.

Don’t change System files: Of those five folders, the two located in the /System folder (/System/library/ Launchdaem­ons and /System/ Library/launchagen­ts) are for components included as part of macos, and you should resist the temptation to remove or alter them – they’re essential to keep your Mac running correctly.

Modify others as you like: Feel free to browse through the files in the other folders to see what’s there. You can modify them – for instance, to disable them or to change how often they run – but before you do, you should understand a few things about how they work.

When you start your Mac or log in, the launch items in the relevant folders are loaded (that is, registered with the system) unless they have a Disabled flag set. Thereafter, their instructio­ns will be carried out until you restart, even if you drag the launch item to the Trash. To see a list of all the currently loaded launch items on your Mac, open Terminal (in /Applicatio­ns/utilities) and type launchctl list and then press Return.

If you want to stop a launch item from running without your having to restart, open Terminal and type launchctl unload followed by a space and the full path to the

launch item. An easy way to add an item’s full path is to drag it to the Terminal window) For example, take this command:

launchctl unload ~/Library/ Launchagen­ts/com.apple.Folderacti­ons.enabled.plist

It unloads the launch agent that enables Applescrip­t folder actions. Repeat the command with load instead of unload to turn it back on.

Because most launch items run on a schedule or on demand, and because any of them could be disabled, the fact that something is present in one folder doesn’t necessaril­y mean the process it governs is currently running. To see what’s running at the moment, open Activity Monitor – but bear in mind that the name of a given process as shown in Activity Monitor might not resemble the name of the .plist file that tells macos to launch it.

Other explanatio­ns for mystery processes

Although these methods are the most common ways to launch apps automatica­lly in macos, they aren’t the only ones. If you have a mystery process that you can’t track down in any of these places, it could also be one of these:

Kernel extensions: Kernel extensions, or kexts, live in /System/ Library/extensions and load at start-up. They provide low-level features such as processing audio and adding support for peripheral­s. Most kexts on your Mac are part of macos. The safest way to remove a third-party kext is to run an uninstalle­r provided by the developer.

Crons: Cron is a Unix scheduling utility built into macos. It’s more-orless not used anymore in favour of launchd, but you never know what might be lingering on a Mac that has gone through a lot of updates or is running old software.

Login scripts: Login scripts, like startup items, were used in older versions of macos but are now deprecated.

 ??  ??
 ??  ?? Everything in the Login Items list – whether added by you or by an app – opens automatica­lly when you log in.
Everything in the Login Items list – whether added by you or by an app – opens automatica­lly when you log in.

Newspapers in English

Newspapers from Australia