Skip to content

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 into
elripalda:mainfrom
Xarishark:feat/read-only-filesystem-error-a64bbf
Nov 24, 2026
Merged

elripalda merged 7 commits into
elripalda:mainfrom
Xarishark:feat/read-only-filesystem-error-a64bbf

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • The error names the folder. A failed write in saves::restore 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. 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.
  • Before Play, the player is asked. check_saves (not Sync Now) reports not-restored with 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 optional tvHead). Cancel is the old blocked Play.
  • On Play, sync changes only where it must. The new command saves_play_without_cloud keeps 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.
  • Shortcut --play starts have no window to ask in, so they stop with the reason, as before.
  • 6 new texts, translated in 20 language files and placed mid-file.

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.6 error 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 --play under 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.

    • It showed with the folder named.
    • Play answered yes and reached 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).
    • Cancel answered no and wrote nothing.
    • The reinstall case where the sync is held is covered by unit tests only, and there was no real cloud account to make a restore fail end to end.
  • In distrobox: cargo test passes 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.cjs passes all 766. launcher-i18n.py --check raises nothing about the new texts, and none are missing.

  • npm test passes

  • node --test tests/*.test.cjs passes

  • Tried it in the launcher (bazzite-kde, debug build)

Not tried: the player's own PC.

Checklist

  • One change per pull request
  • No version bump or patch notes (those are done at release time)
  • If it changes what developers can write in recomplauncher.json: the schema and docs are updated too (nothing changes for developers)

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
Xarishark marked this pull request as draft November 23, 2026 18:56
@AngeloAscheri

Copy link
Copy Markdown
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 mkw-recomp, the way a Steam shortcut does. Bug 1 (cloud saves) not tried.

…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.
@Xarishark Xarishark changed the title Play no longer stops on a cloud save it can't put back, or on an unpacked AppImage's libraries Ask before playing without a cloud save that can't be put back, and give unpacked AppImage programs their libraries Nov 23, 2026
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 Xarishark changed the title Ask before playing without a cloud save that can't be put back, and give unpacked AppImage programs their libraries Ask before playing without a cloud save that can't be put back, and name the folder that stopped it Nov 23, 2026
@Xarishark
Xarishark marked this pull request as ready for review November 23, 2026 23:09
@elripalda
elripalda merged commit 7804228 into elripalda:main Nov 24, 2026
6 checks passed
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.

3 participants