openfreedom.plist

edit · copy to clipboard · view raw · download launched.openfreedom.plist running if [ $(ps aux | grep -v grep | grep -ci freedom) -lt 3 ]; then open /System/Volumes/Data/Applications/Freedom.app; fi :

<?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>launched.openfreedom</string>
	<key>ProgramArguments</key>
	<array>
		<string>sh</string>
		<string>-c</string>
		<string>if [ $(ps aux | grep -v grep | grep -ci freedom) -lt 3 ]; then open /System/Volumes/Data/Applications/Freedom.app; fi </string>
	</array>
	<key>StartInterval</key>
	<integer>300</integer>
</dict>
</plist>

To install: curl https://zerolaunched.herokuapp.com/plists/a0ef98e0-718d-0139-30a9-61ae731e8372/install | sh copy to clipboard · view install script

To install manually:

mkdir -p ~/Library/LaunchAgents
curl -o ~/Library/LaunchAgents/launched.openfreedom.plist https://zerolaunched.herokuapp.com/plists/a0ef98e0-718d-0139-30a9-61ae731e8372.xml
launchctl load -w ~/Library/LaunchAgents/launched.openfreedom.plist

Or, to install as root:

curl -o ~/Downloads/launched.openfreedom.plist https://zerolaunched.herokuapp.com/plists/a0ef98e0-718d-0139-30a9-61ae731e8372.xml
sudo cp ~/Downloads/launched.openfreedom.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/launched.openfreedom.plist