Skip to content

Time played, and back to the dashboard when a game closes - #93

Merged
MrMilenko merged 1 commit into
mainfrom
playtime
Nov 19, 2026
Merged

MrMilenko merged 1 commit into
mainfrom
playtime

Conversation

@MrMilenko

Copy link
Copy Markdown
Owner

Games started from the dashboard are watched now.

  • A game started as a program counts while its process runs. A Steam game counts from when Steam reports it running until it stops (registry on Windows, registry.vdf on Linux and Mac, Flatpak Steam included).
  • When it closes, the time is added to the game and the dashboard comes back. Settings > Games > Back to UIX When a Game Closes turns that off.
  • A launcher that hands off to the real game and quits within 20 seconds isn't timed and doesn't pull the dashboard over the game.
  • The guide shows Time Played on each game.
  • While a game is running and the dashboard is in the background, the dashboard idles instead of rendering flat out.
  • Finished child processes are reaped on Linux and Mac instead of piling up.

Tested: a 30 second program on macOS (30s recorded, window restored; macOS gives focus back to whatever had it before, so the dashboard comes back but may not be focused) and a 33 second ping.exe on the Windows build under Wine (33s recorded, dashboard back on top). Steam tracking still needs a test with real Steam games.

Launches from the dashboard are watched now. A game started as a program
counts while its process lives; a Steam game counts from when Steam reports
it running until it stops. When it closes, the time is added to the game and
the dashboard comes back (Settings > Games > Back to UIX When a Game Closes).
A launcher that hands off and quits within 20 seconds isn't timed and doesn't
pull the dashboard over the game. The guide shows Time Played on each game,
the dashboard idles while a game is up and it's in the background, and
finished child processes get reaped instead of piling up.
@MrMilenko
MrMilenko merged commit 0af4686 into main Nov 19, 2026
13 of 15 checks passed
@MrMilenko
MrMilenko deleted the playtime branch November 19, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant