Repository navigation
fix(play): a game that exits ends its watch at once and is logged - #30
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
pollends 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.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.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).