ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 28 forks source link

New modules fail to start at launch #105

Open Terrance opened 5 days ago

Terrance commented 5 days ago

I've just installed the 0.13.1 AppImage release, which includes aw-sync but does not enable it by default.

aw-qt's config updated to load it:

[aw-qt]
autostart_modules = ["aw-server", "aw-sync", "aw-watcher-afk", "aw-watcher-window"]

But when starting aw-qt I get the following:

Screenshot_20240701_231109

[2024-07-01 23:10:16][INFO][aw_sync]: Starting daemon...
[2024-07-01 23:10:16][INFO][aw_sync]: Pulling from all hosts
[2024-07-01 23:10:16][INFO][aw_sync::util]: Found remotes: ["hostname"]

The log ends there. Pressing Restart seems to result in the module loading successfully. Enabling the module from the tray icon menu without updating autostart_modules also seems to start it without any problems.

The same happens trying to load aw-watcher-input, which also isn't enabled by default.

Terrance commented 4 days ago

Similarly on Windows (0.13.1 installed via Chocolatey), having configured those two additional modules to run at startup, they just don't -- no log files and no startup error, but no data from them and they're not ticked in the tray menu.

Trying to enable them from that menu logs a warning that it's trying to stop them but they're not currently, so there seems to be some mishandled state here (maybe related to #103).