aw-watcher-window
aw-watcher-window copied to clipboard
Aw watcher window quits without any logged error on MacOS Catalina
I'm on a rather old MacOS:
System Version: macOS 10.15.7 (19H2)
Kernel Version: Darwin 19.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Just installed ActivityWatch, v0.12.1, it had a small hiccup when starting the first time, had to start it a second time, then the tray icon appeared, but also a message about aw-watcher-window having quit unexpectedly:

Clicking "restart" closes the window, but the module just quit again without giving the error window.
In the log there is nothing significant:
2022-10-31 13:13:57 [INFO ]: aw-watcher-window started (aw_watcher_window.main:62)
2022-10-31 13:13:58 [INFO ]: Using swift strategy, calling out to swift binary (aw_watcher_window.main:67)
2022-10-31 13:13:58 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:429)
Looks like the same issue as https://github.com/ActivityWatch/activitywatch/issues/801
I got the same behavior when updating the Mac hostname.
Get the hostname and make sure it does NOT contain spaces:
scutil --get HostName
If it contains spaces, they should be replaced with a hyphen or deleted. Set new hostname:
scutil --set HostName MacBook-Air
I'll be glad if this helps you.