dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.75k stars 180 forks source link

Frequent crashes: a workaround #503

Open smartwatermelon opened 5 years ago

smartwatermelon commented 5 years ago

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>
nickfreemandesign commented 4 years ago

+1 useful. you are one smart watermelon 🍉ty

axsuul commented 2 years ago

Awesome, just what I was looking for!