Skip to content

Instantly share code, notes, and snippets.

@tylergets
Created July 21, 2016 22:20
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 tylergets/e4ab5bea35ddcd6c3134503b44284165 to your computer and use it in GitHub Desktop.
Save tylergets/e4ab5bea35ddcd6c3134503b44284165 to your computer and use it in GitHub Desktop.
University of Cincinnati requires their Safe Connect client to access their wireless, no problem. However I do have a problem with it running on my computer all the time. Here is a way to disable it. LaunchAgent is located in /Library/LaunchAgents
<?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>ExitTimeOut</key>
<integer>5</integer>
<key>HopefullyExitsFirst</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>scClient</string>
<key>RunAtLoad</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/Applications/SafeConnect.app/Contents/MacOS/scClient</string>
</array>
<key>WorkingDirectory</key>
<string>/Applications/SafeConnect.app/Contents/MacOS/</string>
</dict>
</plist>
#Use "startsc" and "quitsc" from terminal.
#These work well in ~/.bash_profile ;)
alias startsc="sudo launchctl load -w /Library/LaunchAgents/Safe.Connect.client.plist; open -a '/Applications/SafeConnect.app/Contents/MacOS/scClient'"
alias quitsc="osascript -e 'tell application \"SafeConnect.app\" to quit';sudo launchctl unload -w /Library/LaunchAgents/Safe.Connect.client.plist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment