Skip to content

Instantly share code, notes, and snippets.

@psayre23
Created July 8, 2014 19:51
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 psayre23/63fb9a3048c60d7f2005 to your computer and use it in GitHub Desktop.
Save psayre23/63fb9a3048c60d7f2005 to your computer and use it in GitHub Desktop.
Airsquirrels Reflector Load on Login

Background

I need a way to automatically load Reflector for Mac OSX when a user signs in. This is my solution. Start by opening the console.

Step 1

Open Reflector using sudo. This will setup the global settings. Enter your license key here and your users won't have to enter it.

sudo /Applications/Reflector.app/Contents/MacOS/Reflector

Step 2

Create a Launch Agent that will run when the user signs in. Copy the .plist file below to the folder /Library/LaunchAgents/. This may require root access, so you'll have to approve it. You will want to make the file read/write only by root.

sudo chmod 600 /Library/LaunchAgents/com.airsquirrels.reflector.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.airsquirrels.reflector</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Reflector.app/Contents/MacOS/Reflector</string>
</array>
<key>ProcessType</key>
<string>Interactive</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment