Repository navigation
Ask before playing without a cloud save that can't be put back, and name the folder that stopped it - #467
Merged
elripalda merged 7 commits intoNov 24, 2026
Conversation
Restoring a copy wrote its folders and files with a bare ?, so a read-only save folder showed only "Read-only file system (os error 30)": no step and no path. It now says the save couldn't be written to its folder, with the folder and the system's reason on the line under it. The file is also closed before its rename, as it was when it was a temporary.
…he game A player who reinstalled MKW on Linux with cloud saves on got "Read-only file system (os error 30)" on every Play, and the game never started: the newer cloud save was put in place first, a folder it wrote to was read-only, and the error stopped Play. With cloud saves off it played. Before Play, a cloud save that can't be put in place now lets the game start with this PC's save, and the toast says why and names the folder (the trail notes it too). The game's saves are held for the player's pick: the last sync is forgotten and the cloud copy is marked as a conflict, so the save this session makes stops as a conflict instead of going up over the cloud's. Sync Now still shows the error. Downloading the cloud copy into the save copies folder names that folder when it fails, too.
With Easy Setup on, MKW Recomp closed at once with code 127 on Linux: "mkw: error while loading shared libraries: libvpx.so.6". Its profile names mkw, which since AppImages are unpacked (elripalda#310) is found in the game's folder and started by itself. Its AppRun is what puts the AppImage's lib/ folder on LD_LIBRARY_PATH, so without it the libraries mkw ships with weren't found. Before elripalda#310 the profile's program wasn't there and the AppImage started instead. A program inside an unpacked AppImage that isn't its AppRun now gets the AppImage's own library folders first on LD_LIBRARY_PATH (lib, lib64, usr/lib, usr/lib64 and usr/lib/<arch>-linux-gnu, those that exist), with the PC's own list after them, for Play and for a setup step. A profile can't set that variable itself. The developer guide says so beside the AppRun rules. On bazzite-kde, a fresh MKW install with Easy Setup on stopped with the libvpx error on the old build and reached the game's start screen on this one.
Xarishark
marked this pull request as draft
November 23, 2026 18:56
Contributor
|
Tested bug 2 on a second Bazzite PC (KDE, Wayland, RX 6700 XT), with a clean MKW v0.1.17 install from the store (the AppImage unpacked into a plain folder).
Started through |
…play with this PC's save The last change let the game start on its own when the cloud's newer save couldn't be put in place, and held the sync for every such failure: a brief download error left a conflict to pick, and the player was never asked. Now the check before Play only says what happened and changes nothing. The window asks "Play Without Your Cloud Save?", naming the folder and the system's reason, with Play with this PC's save and Cancel (Big Picture shows the same as a sheet). Cancel is the old blocked Play. On Play, saves_play_without_cloud keeps the reason on the game's page, and holds the sync only where it has to: when this PC last synced exactly the cloud's save (a reinstall), so the session's save would otherwise go up over it. Any other case already stops as a conflict, and the sync stays as it was. A shortcut start has no window to ask in, so it stops with the reason, as before.
This reverts 761aa91 ("A program named inside an unpacked AppImage gets the libraries it brings"), which goes in its own pull request with the rest of the unpacked AppImage work, so this one is only about cloud saves.
Xarishark
marked this pull request as ready for review
November 23, 2026 23:09
6 tasks done
3 tasks done
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.
What this changes
A player who reinstalled MKW on Linux (AppImage launcher, Easy Setup off, signed in with cloud saves on) got only the toast "Read-only file system (os error 30)" on every Play, and the game never started. With cloud saves off it played. Before Play, the newer cloud save is put in place (
saves_check→take_cloud→saves::restore). One folder it writes to was read-only on their PC. Those writes used a bare?, so the error named neither the step nor the folder.saves::restorenow saysThe save couldn't be written to its folder., with the folder and the system's reason on the line under it. The file is also closed before its rename. Writing the download into the save copies folder (take_cloud) names that folder too (The cloud save couldn't be kept on this PC.). This also improves Sync Now and the Saves tab's Restore, which show the same errors.check_saves(not Sync Now) reportsnot-restoredwith the reason and changes nothing in sync. The window asks "Play Without Your Cloud Save?", naming the folder, with Play with this PC's save and Cancel. Big Picture shows the same question as a sheet (ask()takes an optionaltvHead). Cancel is the old blocked Play.saves_play_without_cloudkeeps the reason on the game's page. It holds the sync (forgets the last sync, marks the cloud copy as a conflict) only when this PC last synced exactly the cloud's save, which is the reinstall case. Without that, the session's save would go up over the cloud's. In every other case the upload after the session already stops as a conflict, so the sync stays as it was. A brief download error doesn't leave a conflict.--playstarts have no window to ask in, so they stop with the reason, as before.Which folder was read-only for that player is still unknown; the question will name it. A restore that fails partway still leaves the files it already wrote (as before). If the player then chooses Play, the game starts with them. For a fresh install there's nothing to mix.
The unpacked AppImage library fix that was here (MKW's
libvpx.so.6error with Easy Setup on) moved to a PR of its own, with the rest of the unpacked AppImage work. The last commit here reverts it, so this PR's squash holds only the cloud save change.How you tested it
On bazzite-kde (Bazzite, KDE):
Ruling out Play itself: the real Beta 68 AppImage, run from its read-only mount (
--appimage-mount), with a fresh MKW install, Easy Setup skipped and--playunder strace. No write hit a read-only file system, and the game started. That narrowed it to the cloud step, which the player confirmed by turning cloud saves off.The question in the app: a debug build under tauri-driver, calling the question with a read-only reason.
saves_play_without_cloud. Only the reason was stored, and the trail logged the sync as it was (the cloud's save wasn't the one last synced here).In distrobox:
cargo testpasses all 1016 with both fixes. This branch's 6 new tests are among them, and the other fix's 4 left with it.node --test tests/*.test.cjspasses all 766.launcher-i18n.py --checkraises nothing about the new texts, and none are missing.npm testpassesnode --test tests/*.test.cjspassesTried it in the launcher (bazzite-kde, debug build)
Not tried: the player's own PC.
Checklist
recomplauncher.json: the schema and docs are updated too (nothing changes for developers)