ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.34k stars 512 forks source link

Unable to record game Apex (r5apex.exe) usage time #1004

Closed suiahae closed 6 months ago

suiahae commented 6 months ago

Describe the bug

Unable to record game Apex (r5apex.exe) usage time

https://store.steampowered.com/app/1172470

To Reproduce

  1. "ActivityWatch" is launching at startup
  2. Run "Apex (r5apex.exe)"
  3. Open Dashboard
  4. Click "Activity" or "Timeline"
  5. "Activity" > No record of r5apex.exe appears
  6. "Timeline" > A blank segment appears

Expected behavior

"Activity" & "Timeline" > A record of r5apex.exe appears

Documentation

图片

Additional context

github-actions[bot] commented 6 months ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

BelKed commented 6 months ago

Possible duplicate of https://github.com/ActivityWatch/activitywatch/issues/873

suiahae commented 6 months ago

Possible duplicate of #873

Thanks for your tip, I tried the methods mentioned in #873, both of which can solve this problem:

The only difference is that Apex (r5apex.exe ) is a Steam game and is same not running under administrator privileges.

suiahae commented 6 months ago

The latest fix (https://github.com/ActivityWatch/aw-watcher-window/pull/96) works and can record Apex correctly!

I'm using this commit mentioned by @ErikBjare at https://github.com/ActivityWatch/activitywatch/issues/873#issuecomment-1875584518 and the rest code is based on the latest master branch source code https://github.com/ActivityWatch/activitywatch/commit/41a72d7f6e4496098a4cc7171533a64821e7c6d5.

图片

ErikBjare commented 6 months ago

Thanks for testing it @suiahae!

Might be bold and merge this without testing it myself. Goal is to get a new beta release out that fixes this ASAP (along with another window watcher fix for macOS).