After a while ActivityWatch on my macOS device stops logging data. The UI was no longer accessible so I’m guessing it crashed.
I noticed there was no .plist file I created one to start the server on login and restart if it crashed.
The path for the file is
{{user}}/Library/LaunchAgents/ActivityWatch Server.plist
The .plist file
<?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>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>ActivityWatch Server</string>
<key>Program</key>
<string>/Applications/ActivityWatch.app/Contents/MacOS/aw-server</string>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/net.activitywatch.err</string>
<key>StandardOutPath</key>
<string>/tmp/net.activitywatch.out</string>
</dict>
</plist>
Would that be the only part of ActivityWatch I’d have to keep running to keep data collection running?