After upgrading to macOS Big Sur, the most essential utility for me, Jitouch, stops working reliably. The process is often dead after the computer wakes up from sleep.
Here's how to keep Jitouch running using
Create a file
~/Library/LaunchAgents/jitouch.restart.plistwith following content:
<?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>jitouch.restart.local</string> <key>ProgramArguments</key> <array> <string>sh</string> <string>-c</string> <string>/Users/yi/Library/PreferencePanes/Jitouch.prefPane/Contents/Resources/Jitouch.app/Contents/MacOS/Jitouch</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist>
Remember to replace the Jitouch install location in the file with your own
launchdservice from the file:
$ launchctl load -w ~/Library/LaunchAgents/jitouch.restart.plist
For some reason, the
sh -c part is necessary. The service crashed when I tried launching Jitouch binary directly.