Open luisgerhorst opened 1 month ago
Watcher "Wayland idle (ext-idle-notify-v1)" cannot run: the requested global was not found in the registry
Hello! The debug error like this is expected, it only shows why some watcher is not selected. I don't quite understand why it doesn't output "Selected watcher "Gnome window (extension)" in your case with no other error. Does it happen always, or always when running with systemd, or occasionally (randomly) even with systemd? Have you removed your changes from your branch? I remember adding 3 connection attempts in order to fix the issue with systemd, which happened https://github.com/2e3s/awatcher/issues/8 or https://github.com/2e3s/awatcher/issues/11
I am running the upstream version 0.2.7, not my branch. Yes, I will investigate when exactly this happens. It seems to occur occasionally with systemd. I have not yet tested how often it occurs with other startup mechanisms on my system.
If you run the built version and the error happens on system startup, try maybe to increase the number of attempts. If you run a slower machine, it might not be enough on system startup I speculate. Although, the absence of errors in the output is confusing, whatever problem you're facing, I would expect to see at least some errors.
Has not happend since...
When this happens, the window data is missing from ActivityWatch. I am starting awatcher from
systemd --user
. Restarting awatcher seems to usually resolve this issue.Version: 0.2.7 (13cea8b, Add timeout to watcher iteration, Debug Build from Source) System: https://github.com/2e3s/awatcher/issues/12#issuecomment-2003103943