Repository navigation
fix(installer): restart Steam only for an edit it undid, and answer Cancel - #3
Merged
Merged
Conversation
…ancel A player saw Steam restart five or six times and the bar stand at 96% for minutes until they pressed Cancel, and the game was in the library anyway: - A rewrite of shortcuts.vdf that does not come within 210 s no longer counts as a failure. Every attempt waited the full time and then restarted Steam for the next one, four restarts in all; now the file is checked as it stands, and only a failed check leads to another attempt. - The wait at 96% counts on the bar: "0:42 so far, it can take up to 3:30". A retry says why Steam goes down again. - Cancel is answered. The button kdialog shows by default only hid the window, and the install went on unseen. While Steam is untouched, a closed window now stops the install, the unpacking included, with exit code 6 and a last window naming the folder with what was unpacked. Once Steam is down, the attempt in progress runs to its end but no other one starts, and a restart to put the shortcut list back is announced with a notification.
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.
Why
Feedback from a player: Steam restarted five or six times in a row, the bar stood at 96% for minutes until they pressed Cancel, and the game was in the library anyway and started later.
At 96% the installer waits up to 210 s for Steam to rewrite
shortcuts.vdfitself (SPEC 5.1.0). On our Deck that took 6 to 90 s. When the rewrite did not come, the result counted as unproven, and the next attempt stopped Steam, put the shortcut list back, added the game again, started Steam and waited the full 210 s once more. Three attempts and the restore after them make four restarts of Steam and over ten minutes with the bar standing still. Cancel stopped none of it: the buttonkdialog --progressbarshows by default only hides the window, and nothing asked about it.The player's
install.logwould confirm this, and it is not in hand yet.What
steamctl.wait_rewritetakes atickfor it. A retry says why Steam goes down again: "Steam did not keep the game, trying again: attempt 2 of 3...".install.pyasks the window'swasCancelled, and a reference that stops answering counts as closed too.Notes
editorconfig-checkerv4.0.2 finds no errors, andsh -nanddash -nacceptsetup.sh.kdialogand the documented behavior ofQProgressDialog: it setswasCanceledand hides the window..runit builds, so the fix reaches a player once the site is deployed and the.runis built again. A.runbuilt before keeps the old installer.