Automatically launching NoMAD

Automatically launching NoMAD

When deploying NoMAD you may want to have NoMAD automatically launch whenever a user logs in to their Mac. There are a few ways to do this.

System LaunchAgent

The most robust method for launching NoMAD on login is to create a System LaunchAgent which will launch NoMAD whenever any user logs into the macOS GUI and can be set to ensure that the application will re-launch if it ever crashes or is quit by the user.

A LaunchAgent consists of a plist file in /Library/LaunchAgents owned by root that references the path the application and a few other keys.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

You can find an installer for a NoMAD System LaunchAgent here.

User LaunchAgent

This is similar to a System LaunchAgent but instead of the plist being placed in /Library/LaunchAgents it’s in the user’s home folder, ~/Library/LaunchAgents. The file needs to be owned by the user and will then launch NoMAD whenever that user logs in. Note that unlike a System LaunchAgent, the user will be able to remove or otherwise change this agent.

Login Item

A more casual method for kicking off an application on a log in is to use a Login Item. This is done through the Users & Groups pane of the System Preferences. Here you can specify a Login Item for your user account. This method differs from the LaunchAgents in that there is no method for re-launching the application in the case of a crash. However, this method can be done entirely in the GUI by non-admin users.

© 2017 Orchard & Grove Inc.