-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macos] loginwindow
reported with latest macOS update
#85
Comments
@ErikBjare friendly ping here—wdyt is the best approach? |
Exclude AFK time only selects time where there is a 'not-afk' event. If data is missing or 'afk', it won't/shouldn't pass the filter. This could possibly be some other bug with overlapping events, not sure why/how this happens. |
One possibility is that on unlock, the user might keep using whatever app is active (no app/title switch to trigger a new event), and the watcher continues to think loginwindow is active. I've had a similar issue where, for some applications, the window-switch doesn't seem to fire an event. Like when I start games from Steam, it will sometimes keep tracking Steam until I tab-switch back and forth. Adding polling to augment the event-listener would fix this. Someone else has reported the same in issues or on the Discord. |
Ah, interesting. I think this is a good approach—do a poll every 10s or so if we haven't received a OS notification. Does that sound good to you? |
@ErikBjare I've just hardcoded excluding loginwindow events for now and it's working pretty well. I think adding a poll to the swift implementation will be better, but I'm wondering if you are open to a hardcoded exclusion in the meantime (I don't have time for the polling stuff right now). |
workaround for ActivityWatch#85
workaround for ActivityWatch#85
I'm running into an issue where
login window
is reporting > 1hr of usage over a week period. I think this issue is connected to AFK and how it works.Exclude AFK time
filter out time where there is no AFK data? i.e. will the login window time above be excluded?The text was updated successfully, but these errors were encountered: