ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

Frequent crashes: a workaround

Open smartwatermelon opened this issue 5 years ago • 2 comments

As we know, there isn't any current development happening on ControlPlane. But it's still very useful for me. Unfortunately, the app tends to crash a couple of times a day, and I only notice when something that was supposed to automatically happen doesn't happen. So I found this Stack Exchange post, and put together a LaunchCtl service which automatically relaunches ControlPlane when it crashes. I hope this is useful to someone. Name it ControlPlane.restart.plist, save it to ~/Library/LaunchAgents, and launch it with launchctl load ~/Library/LaunchAgents/ControlPlane.restart.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>RunAtLoad</key>  
        <true/>  
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>ControlPlane.restart</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Applications/ControlPlane.app/Contents/MacOS/ControlPlane</string>
        </array>
</dict>
</plist>

smartwatermelon avatar Mar 13 '19 16:03 smartwatermelon

+1 useful. you are one smart watermelon 🍉ty

nickfreemandesign avatar Apr 30 '20 14:04 nickfreemandesign

Awesome, just what I was looking for!

axsuul avatar Nov 01 '21 21:11 axsuul