Skip to content

fix(play): a game that exits ends its watch at once and is logged - #30

Merged
TheBiemGamer merged 2 commits into
mainfrom
fix/play-watch
Nov 16, 2026
Merged

TheBiemGamer merged 2 commits into
mainfrom
fix/play-watch

Conversation

@TheBiemGamer

Copy link
Copy Markdown
Owner

A game Guild starts itself (GOG, Amazon, added games, and Epic on Linux) kept its watch for 30 s after its process exited. So the card showed Play, but a second Play was refused with "close the game first", and nothing reached launcher.log. Found while testing the Flatpak (#29), where umu-run exited at once; the bug is in main for every platform.

  • poll ends the watch as soon as our own process has exited. The 30 s grace stays for an Epic game on Windows, which is found by its exe name and may not have started yet.
  • A game that exits with an error, or before it was seen running, is logged with its exit status. A Play that fails before starting is logged too.
  • On Linux, umu-run, pressure-vessel and Proton write to logs/game-<copy key>.log, rewritten at each launch. The failure warning includes its last 20 lines, so the reason shows up in launcher.log.
  • The GOG scan's log line says "gogdl isn't installed" instead of the raw NoTool.

Tests: a_watch_ends_as_soon_as_our_process_exits, a_game_output_tail_is_its_last_lines_indented. All checks pass (npm run check, npm test, cargo test, clippy, fmt, prettier).

A game Guild starts itself (GOG, Amazon, added games, Epic on Linux) kept
its watch for 30 s after it exited, so the card showed Play while a
second Play was refused with "close the game first". The watch now ends
when the process exits, an exit with an error or before the game was seen
running is logged, and so is a Play that fails. The GOG log line names
the reason instead of the raw login state.
… it fails

umu-run, pressure-vessel and Proton write to logs/game-<copy key>.log,
rewritten at each launch. A game that exits with an error or before it
was seen running logs the last lines of that file with its exit status.
@TheBiemGamer
TheBiemGamer merged commit 29d1a44 into main Nov 16, 2026
3 checks passed
@TheBiemGamer
TheBiemGamer deleted the fix/play-watch branch November 16, 2026 12:44
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