Skip to content

On Linux every game plays from a plain folder, never an AppImage - #310

Merged
elripalda merged 12 commits into
elripalda:mainfrom
Xarishark:feat/linux-plain-folders
Nov 19, 2026
Merged

elripalda merged 12 commits into
elripalda:mainfrom
Xarishark:feat/linux-plain-folders

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on #303 (all-or-nothing game updates), which is merged; upstream main is merged in here (0c58e99 for U's final swap.rs, taken whole; b71ee8f for Beta 65). Draft until reviewed.

What

On Linux every game plays from a plain folder. The launcher never runs an AppImage again.

  • A release's AppImage is unpacked at install and update with the launcher's own reader (appimage::unpack). SquashFS images are read with backhand, which was already a dependency for reading manifests. DwarFS images, which pkgforge's Anylinux/uruntime tooling and Tauri's portable AppImage branch write, are read with the new dwarfs crate (zstd only; dwarfs-enc is test-only). Both go through the same writer. Nothing of the image runs, and no FUSE is needed. Its files become the game's folder, the AppImage goes, and the game starts from its AppRun with APPDIR and ARGV0 set, as before. This used to happen only in the Flatpak build (--appimage-extract, which runs the image). Now every Linux build does it, inside U's staging, so it's part of the all-or-nothing step. A release with several AppImages unpacks each into a folder named after it.
  • No fallback to running it. If the AppImage won't unpack (a type-1 image, a damaged file), the release's tarball is installed instead when there is one (same project, same SourceForge check). Otherwise the install stops with a clear message.
  • An AppImage the player brings in (Bring Your Recomps, I Already Have It, Add It Anyway) is read once and unpacked into the Recomp Library, and its path is not kept. The message says "{name} is unpacked into your Recomp Library. Your AppImage stays where it is." If the AppImage sits inside a library, the message says the unpacked game took its place instead, and the file goes. For a game not in the catalog, the message adds "To update it, bring in its newer AppImage the same way". A newer AppImage with the same name, version aside, updates that game in its folder. I Already Have It doesn't ask "move or play from where it is" for an AppImage.
  • Games added or installed as AppImages before this get the same treatment, and the same message once, on their next Play or before their setup step (in_plain_folder). That covers an older non-Flatpak launcher's install, which unpacks in place.
  • Removed: Play's FUSE mount and APPIMAGE_EXTRACT_AND_RUN, the Flatpak's first-Play unpack into its cache (that cache is deleted once at start), and the AppImage setup's extract-and-run. has_fuse2 is now only used by the launcher's own AppImage update. Anything that still reaches an AppImage at Play or setup is refused with a message, never run.
  • Drive check: before a Linux game installs or is brought in, a library folder on exFAT, NTFS (also NTFS-3G/fuseblk) or FAT, or mounted noexec, is refused with a message, since games there lose their run permission and links. Read from /proc/self/mountinfo.
  • .tar.xz and .tar.zst releases install (xz2 added as a direct dependency, as approved). They rank like .tar.gz, so the tarball-vs-AppImage ranking doesn't change.
  • updated_exe follows an old AppImage install to the new release's AppRun. find_exe and the profile's ….AppImage → AppRun mapping also handle <name>/AppRun.
  • From U: mods (plugins), installer releases and unpacked game copies now go in all-or-nothing through swap::put_in_place instead of install::unpack + overlay (overlay is gone).
  • old_release (U's review: a folder where the release has a file, or the other way round, is set aside only when all of it is the old release's):
    • Install passes the previous record's files, as U does.
    • Bringing an AppImage game in place passes the record's files: an older launcher's release, or what an earlier unpack put there.
    • Mods, installer releases and game copies pass nothing, because no list of what they put there before is kept. A clash like that stops the unpack with nothing changed; the player's files are never set aside. A file over a file of the same name is replaced as before. Tested with a mod file that lands on a folder of the player's.
  • Games started from the AppImage launcher get the player's GTK theme (found by the AppImage run below). linuxdeploy's GTK hook pins GTK_THEME to Adwaita:light or Adwaita:dark for the launcher, and its AppRun sets PYTHONDONTWRITEBYTECODE=1; both reached every game. They're now removed for games when they have exactly those values. A theme the player set themselves stays.
  • Windows: a linked folder is removed as a link (U's review). swap::remove_any called remove_file on a junction or folder symlink, which Windows refuses ("Access is denied", os error 5), and install::patient then retried for about 10 s. It now uses remove_dir, which takes the link and leaves its target.
  • A folder the launcher unpacked a game into belongs to the launcher (Installed.unpacked), so uninstalling can delete it even for a game the player added. A game folder the player put in the Recomp Library themselves, unpacked in place, stays theirs: uninstall leaves it, as before, since it may hold other files of theirs. The unpack's files are still in the record, and a newer AppImage still updates it there.
  • Play's one-time unpack of an older AppImage game runs in block_in_place, as Bring Your Recomps' does, so it doesn't hold one of the runtime's workers for the minutes a big game takes.

Why

AppImages get deleted after they're extracted, they need FUSE to mount, and they can't mount in the Flatpak at all. Plain folders are the stable long-term form. AppImages and macOS .app bundles that players run outside the launcher keep their OS default paths; this only changes what the launcher runs.

Tests

  • Linux VM (Bazzite, rl-setup distrobox), after merging main: cargo test passed 827, failed 0. node --test tests/*.test.cjs passed 378, failed 0. Windows 11 VM: cargo test --lib -- swap:: passed 19, including the new junction test, which fails on the old code with os error 5. Every commit's tree was tested on its own. tools/launcher-i18n.py --check output is identical to main, and every new text is in all 21 languages.
  • New tests: unpacking a real SquashFS image (permissions, setuid dropped, links leaving the folder dropped, a non-AppImage refused); a release AppImage, one in a zip, several, and a broken one; .tar.xz and .tar.zst; an old AppImage exe followed to AppRun; mods going in whole and waiting for an unsettled update; bringing in from outside the library, in place inside it, into a folder of the player's own (which stays theirs, and updates there), an update of an earlier one, and a broken one; Play's unpack letting the runtime's other tasks run on a one-worker runtime; mountinfo parsing; the UI message, ownFolder, I Already Have It, and Bring Your Recomps.
  • The launcher, really run (debug build, through tauri-driver in Xvfb, isolated HOME/XDG):
    1. Installed Dusklight from the catalog (AppImage-only). Its folder has AppRun, usr/ and the desktop file, with no AppImage left. Play started …/dusklight/AppRun.
    2. Brought in a player's AppImage from Downloads. It went to Recomp Library/Dusklight, the message showed, and the file stayed in Downloads.
    3. A game an older launcher left as an AppImage in its library folder: on Play it was unpacked in place, the AppImage removed, and it started.
    4. In Big Picture, a newer AppImage of the game from case 2 updated it in place, with the same message.
    5. DwarFS: installed Carpocalypse 2 and OpenGOAL from the catalog. Both were unpacked into plain folders and Play started each one's game.
  • The 3 catalog DwarFS AppImages (OpenGOAL, Carpocalypse 2, Bloodborne Linux): the launcher's unpack matches each AppImage's own --appimage-extract, with the same files, contents, links and permissions (8,084, 2,314 and 18,282 entries). Each one starts from its unpacked folder. Debug-build unpack times are 31 s, 1.2 s and 6.9 s. Unit tests cover a DwarFS image (setuid can't be written by the encoder, so the SquashFS test covers that), its links, its manifest, a damaged image, and a release's DwarFS AppImage at install.
  • The real Flatpak build of this branch: built with flatpak-builder on the GNOME 51 runtime, from the repo's manifest. For speed, the test build used the source folder, network while building, and no LTO. It was installed as com.recomplauncher.RecompLauncher and driven through tauri-driver inside its own sandbox (--devel, for WebKitWebDriver):
    • Dusklight (SquashFS) and Carpocalypse 2 (DwarFS) installed from the catalog into plain folders, and Play started each.
    • A player's AppImage from Downloads was brought in, and the file stayed.
    • A game an older launcher left as an AppImage was unpacked in place on Play and started.
    • The messages showed.
  • The launcher as the AppImage players run, built from this branch the way release.yml builds it (npm ci, then npm run build -- --bundles appimage, with Tauri's linuxdeploy). It was built in the Fedora 43 box rather than Ubuntu 24.04, so it needs a newer glibc than a release. It ran on the Bazzite host, with HOME and all four XDG folders in a throwaway home:
    • Dusklight (SquashFS) and Carpocalypse 2 (DwarFS) installed from the catalog into plain folders with no AppImage left, and Play started each.
    • A player's AppImage from Downloads was unpacked, and the file stayed.
    • A game an older launcher left as an AppImage was unpacked in place on Play and started.
    • The three messages showed.
    • On the real host, with Steam's Proton there, a first install asks for the Linux or the Windows build, as before.
    • Then again with the head (b71ee8f) built as CI builds it: Ubuntu 24.04 (glibc 2.39) in a throwaway container, its packages, stable Rust 1.100, Node 24, npm run build -- --bundles appimage -- --locked. Every case above passed the same way on the host, and GTK_THEME and PYTHONDONTWRITEBYTECODE no longer reach a game.
  • What a game gets from the launcher's AppImage: two test games recorded their environment. APPIMAGE, APPDIR, OWD, LD_LIBRARY_PATH, GTK_PATH, GTK_*_PREFIX, GST_*, GIO_MODULE_DIR, GDK_PIXBUF_*, GI_TYPELIB_PATH and PERLLIB never reach a game, and nothing in its environment points into the launcher's mount. An AppRun game gets APPDIR set to its own folder. GTK_THEME and PYTHONDONTWRITEBYTECODE did reach games and are fixed (above). GTK_OVERLAY_SCROLLING=0 comes from WebKitGTK in every build of the launcher, not the AppImage, so it's left as it is.
  • Not run: Windows and macOS builds of the whole branch. Every new path there is Linux-only (cfg), except the swap fix tested on Windows above.

Tarball vs AppImage trial

The 70 catalog projects that ship both were run on bazzite-kde; the full results are in the comment below. The unpacked AppImage starts on the host in 61 of 69. Of the 60 tarballs that are game builds, 44 start. Tarballs fail where they lean on the PC's libraries (FFmpeg 4, Debian's ICU, FLAC and libzip); no AppImage missed a library. None needed APPIMAGE set. The ranking is unchanged.

Of the 254 catalog Linux AppImages, 247 are SquashFS and 3 are DwarFS: OpenGOAL, Carpocalypse 2, and Bloodborne Linux (ayozetr). With the DwarFS reader in the last commit, all of them install.

Patch notes (players)

  • On Linux, games now play from a plain folder in your Recomp Library. AppImages are unpacked when they install and are never run, so nothing needs FUSE, and games you bring in as AppImages are unpacked there too. Releases can also be .tar.xz and .tar.zst.
  • Games started from the AppImage launcher keep your GTK theme.

For the website (SDK guide)

  • In "Releases that install cleanly" and "AppImages": on Linux the launcher unpacks your AppImage at install (no FUSE, nothing of it runs) and starts its AppRun with APPDIR set and no APPIMAGE. If it won't unpack, your tarball is used, so find your files from APPDIR or /proc/self/exe, and you can ship a .tar.xz or .tar.zst as well as a .tar.gz.
  • Also in "AppImages": both SquashFS and DwarFS AppImages are unpacked, so the Anylinux/uruntime tooling and Tauri's portable AppImage work as they are.

swap.rs sets the old release's files aside in the game's folder, moves the new ones in, and puts everything back on any failure. A marker written first lets the next start finish or undo an update the launcher was closed in. Not wired into installs yet.
The release is unpacked beside the game first, then the old files it replaces or drops are set aside and the new ones moved in. A failure, or a later step like the repo clone failing, puts everything back and says what stopped it. The old files go only once the library is saved, and a launcher closed partway finishes or undoes the update at its next start. Scans for the program, setup, backups and saves skip the set-aside folder.
A tarball compressed with xz or zstd installed nowhere: .tar.xz was
refused at unpacking, and .tar.zst wasn't known at all. Both unpack now,
and rank as a .tar.gz does, so which build is picked doesn't change.
xz2 is named as a dependency for it; backhand already built it in.
They were unpacked beside their folder and then moved in one file at a
time, so a locked file or a full drive left half of a mod in a game's
folder. They now go in the way a game's update does (swap.rs): every
file in, or the folder as it was. A launcher closed in the middle undoes
it at the next start, since no game's record has the swap's marker.
AppImages get deleted after they're extracted, need FUSE to mount, and
can't mount at all in the Flatpak. Plain folders are what stays.

- A release's AppImage is unpacked at install and update with the
  launcher's own SquashFS reader (appimage.rs, backhand): nothing of it
  runs. Its files become the game's folder, the AppImage goes, and the
  game starts from its AppRun. Several AppImages each unpack into a
  folder named after them. Every Linux build does this, not only the
  Flatpak.
- No fallback to running it: when the AppImage won't unpack, the
  release's tarball is installed instead, or the install stops and
  says why.
- An AppImage the player brings in is unpacked into the Recomp Library,
  read once and its path not kept; their file stays where it is. One
  inside the library is replaced by the unpacked game. Games added or
  installed as AppImages before this unpack the same way on their next
  Play, or before their setup step. A game the launcher doesn't know
  updates by bringing in its newer AppImage. The window says where it
  went, the same on the desktop and in Big Picture.
- Play's mount, extract-and-run, and the Flatpak's first-Play unpack
  into its cache are gone (the cache is removed once). APPDIR is set as
  before.
- Before a Linux game installs, a library folder on an exFAT, NTFS or
  FAT drive, or one mounted noexec, is refused: games there lose their
  run permission and links.
@Xarishark

Copy link
Copy Markdown
Collaborator Author

Tarball vs AppImage trial (70 catalog projects that ship both)

On bazzite-kde, each project's latest release: the AppImage unpacked the way this PR does it (started from its AppRun with APPDIR), and the tarball. An AppImage inside a tarball was unpacked the same way. Each was run for 10 seconds in Xvfb with a fresh home:

  • on the Bazzite host, with its own libraries, as the AppImage or .deb launcher runs a game;
  • in the freedesktop 26.08 runtime, the base the launcher Flatpak's GNOME 51 runtime is built on. GTK 4, PyGObject and similar libraries are in GNOME 51 but not in this base.

Also checked: ldd for libraries it can't find, what each one writes in the home, and whether its files mention APPIMAGE. No game files of the player's were given, so "runs" means it got as far as its window, launcher or first-run screen.

Headline

  • Unpacked AppImage: starts on the host in 61 of 69 and in the Flatpak base in 53 of 69. The 70th, OpenGOAL, is DwarFS; see below.
  • Tarball: starts on the host in 44 of 60 and in the Flatpak base in 42 of 60. 10 "tarballs" aren't game builds at all: source, debug symbols, build tools, a DOS build, an add-on.
  • Tarballs fail where AppImages don't when they lean on the PC's libraries: ZOE Recompiled needs FFmpeg 4 (libavcodec.so.58), and OpenRCT2's Debian build needs libFLAC.so.12, libicuuc.so.72 and libzip.so.4. Both AppImages start. No AppImage missed a library on Bazzite.
  • Most of the other tarball misses are the trial picking the wrong program. It ran an engine binary or CLI tool that needs arguments or the game's data, where the release's own launcher or recomplauncher.json would start the right one. That isn't a difference between the two forms.
  • Fails in both forms, the developer's side:
    • NHL Hitz Pro and NHL Hitz 2003 need tkinter from the PC's Python, which Bazzite doesn't ship.
    • Flare's bundled libjack clashes with the host's PipeWire.
    • Bookworm and Peggle (Enhanced) crash while loading without the game's files.
    • The AppImages of Eagle Five and UFC 3 want PySide6, or PyGObject with GTK 4, from the system Python.
  • Flatpak only: Electron games (Relic of the Past, Project Sunburn) stop on Chromium's SUID sandbox inside the sandbox. This isn't new with this PR (the Flatpak ran the same AppRun before), but it's worth a follow-up. Bloodborne bbport's AppImage needs user namespaces (cannot unshare).
  • APPIMAGE: 45 AppImages mention it in their files, mostly linuxdeploy's GTK hook and generic AppRun scripts. Every AppImage that started did so without it set.
  • Writes outside the game's folder: common, in ~/.local/share/<game>, ~/.config/<game> and ~/.cache/<game>, the same for both forms.

DwarFS AppImages: needs a decision. A header check of all 254 catalog Linux AppImages found 247 SquashFS, which this PR handles, and 3 packed with DwarFS (uruntime/anylinux): OpenGOAL, Carpocalypse 2, and Bloodborne Linux (ayozetr). The launcher's reader handles only SquashFS, and with no fallback to running the AppImage, those three would stop installing on Linux with the "couldn't unpack" message. OpenGOAL's tarball just wraps the same AppImage. Options: a DwarFS reader, an exception for them, or asking those developers for a SquashFS build or a plain tarball.

The ranking is unchanged in this PR.

Full table
Project AppImage: host / Flatpak base AppImage: libs missing (host; Flatpak base) APPIMAGE in files Tarball: host / Flatpak base Tarball: libs missing (host; Flatpak base) Writes outside its folder
Petexy/Tekken-Tag-2-Ultimate-Edition v0.7.0 runs / exit 127 -; (GNOME: 1) usr/bin/ttt2-launcher runs / exit 127 -; (GNOME: 1) .cache/dconf/user, .dbus
thibautbus/top v1.5.0 runs / runs -; - the-oracles-project runs / runs -; - .cache/dconf/user, .dbus
ThisIsAkill/Table-Tennis-Linux linux-v1.6.2 runs / runs -; - - runs / runs -; - .cache/dconf/user, .cache/tt-recomp/installer-1.6.2
xander-haj/Z3R v0.2.4 runs / runs -; - - runs / runs -; - .local/share/Z3R
regular-dev/biplanes-revival v1.2.1 runs / runs -; - AppRun, usr/bin/BiplanesRevival no Linux program in it (not a game build) -
omegakatana92/Street-Fighter-Alpha-Recomp- v0.1.0-beta.2 runs / runs -; - usr/bin/sfa-launcher runs / runs -; - .cache/dconf/user, .dbus
dalves408/nhlhitzpro-recomp v1.0.9 exit 1 / exit 1 -; - AppRun, appimage.py exit 1 / exit 1 -; - -
vittau/top-gear-2-genesis-pc v0.5.0 runs / runs -; - AppRun, usr/bin/TG2Recomp runs / runs -; - -
YAPhoa/theatrhythm-fbl-pc v1.0.5d runs / runs -; - theatrhythm-dlcmaker runs / runs -; - .cache/dconf/user, .dbus
dalves408/nhlhitz2003recomp v1.0.3 exit 1 / exit 1 -; - AppRun, appimage.py exit 1 / exit 1 -; - -
jackgllghr/bigmission-recomp v0.3.1 runs / runs -; - - runs / runs -; - .cache/dconf/user, .config/SaruSaruRecomp/settings.ini
undecuple/qwarks-awakening launcher-v0.4.0 runs / runs -; - tools/release/firstrun.py runs / runs -; - .cache/dconf/user, .dbus
grovdata/RodLegacy v0.7.0 exit 1 / exit 1 -; - - exit 1 / exit 1 -; - .dbus
GNSB/UFC-3-PS4-PORT-LINUX-WINDOWS ufc3-v0.1.14 runs / exit 1 -; - - sig 6 / exit 134 -; - -
Dima353/heroes_lore_decomp v0.9.3 runs / runs -; - usr/bin/heroes_lore runs / runs -; - -
klaussilveira/neortcw 1.0.0 runs / exit 3 -; - - no Linux program in it (not a game build) .cache/dconf/user, .wolf/main/crashlog.txt
xander-haj/Z3R-Launcher v0.1.1 runs / runs -; - AppRun runs / runs -; - -
MoonCellar-Team/Glassline v1.4.2 runs / runs -; - glassline runs / runs -; - .cache/fontconfig/CACHEDIR.TAG, .cache/fontconfig/cb79bb4a644fc27291646b27aedf3ae0-le64.cache-9
DinosaurPlanetRecomp/dino-recomp v0.3.0 runs / runs -; - usr/bin/DinosaurPlanetRecompiled runs / runs -; - -
Harold0777/eagle_five_recomp v0.3.6 runs / exit 1 -; - usr/share/eagle_five/tools/ac5_launcher.py exit 1 / exit 1 -; - .local/share/eagle_five
yanm1103/War_of_the_Monsters_recomp v0.3.0 runs / runs -; - usr/share/doc/wotm/README.txt no Linux program in it (not a game build) .cache/dconf/user
VibinToast/JetForceGemini-Recompiled v1.3.2 runs / runs -; - AppRun, game/JetForceGeminiRecompiled runs / runs -; - .local/share/JetForceGeminiRecompiled
ThatGuyMcd/Glover-R v1.0.1 runs / runs -; - - runs / runs -; - .config/glover-r/logs, .local/state/glover-r
hachi23/unicorn_overlord_pc v1.6.2 runs / runs -; - - exit 126 / exit 126 -; - .cache/fontconfig/01d40cee498be4726842ba21cbce24ab-le64.cache-7, .cache/fontconfig/0f80fa86029ae75a63f21d682b864529-le64.cache-7
999sian/melee-pc v0.4.2 runs / runs -; - usr/bin/melee runs / runs -; - .local/share/melee-pc
ThatGuyMcd/Rocket-R v.1.0.1 runs / runs -; - - runs / runs -; - .config/rocket-r/logs, .local/state/rocket-r
RecompTeam/DisruptorRecomp v0.16.0 runs / runs -; - AppRun, usr/bin/DisruptorLauncher runs / runs -; - .local/share/DisruptorRecompData
againrom/againrom-engine v0.157.1 runs / runs -; - - exit 2 / exit 2 -; - .config/Againrom/starter.ini
nathanialf/ico-pc v0.11.11 runs / runs -; - usr/bin/ico_pc, usr/bin/mc_import runs / runs -; - .local/share/ico-pc
crspytopgn/openmcm2 v0.6.6 runs / runs -; - usr/bin/mm2-launcher runs / runs -; - .local/share/mm2
SSunnKing/Open-Nectar---Pikmin-Native-PC-Mobile-Port 1.3 runs / runs -; - - runs / runs -; - .cache/open-nectar/art
wivi514/Dead_Rising_2_Case_Zero_Xenon_Recomp v1.1.3 runs / runs -; - AppRun, usr/cz_runtime runs / runs -; - -
wivi514/Dead_Rising_2_Case_West_Xenon_Recomp v1.1.2 runs / runs -; - AppRun, usr/cw_runtime runs / runs -; - -
isledecomp/isle-portable continuous runs / runs -; - AppRun no Linux program in it (not a game build) -
elipp/ctr-rs v0.2.10 runs / runs -; - - runs / runs -; - -
nvd123-YT/WarioWareGoldRecomp v1.0.0 runs / runs -; - - runs / runs -; - .config/warioware-gold-recomp/settings.toml, .local/share/warioware-gold-recomp
nvd123-YT/AngryBirdsRecomp v1.0.0 runs / runs -; - - runs / runs -; - .config/angry-birds-trilogy/settings.toml, .local/share/angry-birds-trilogy
nvd123-YT/MK7Recomp v1.0.5 runs / runs -; - - runs / runs -; - .config/mario-kart-7/settings.toml, .local/share/mario-kart-7
cdlewis/snowboardkids-recomp v1.0.9 runs / runs -; - apprun-hooks/linuxdeploy-plugin-gtk.sh, usr/bin/SnowboardKidsRecompiled runs / runs -; - -
FridiNaTor1/SafeHouse v0.2.137 runs / runs -; - usr/bin/safehouse runs / runs -; - .config/SafeHouse/profile-migration.lock
new-coke/strikers v2.0.0 runs / runs -; - AppRun runs / runs -; - .config/strikers/strikers.ini
bdragoncore/pommy-recomp v1.0.0 runs / runs -; - apprun-hooks/linuxdeploy-plugin-gtk.sh runs / runs -; - .config/bm64u2/cheats.json, .config/bm64u2/general.json
crspytopgn/opensgolf v0.8.5 runs / runs -; - usr/bin/opensgolf runs / runs -; - .local/share/opensgolf
TekRantGaming/Battlefield-1943-Reborn v0.4.7.4 runs / runs -; - AppRun, usr/bin/bf1943 runs / runs -; - -
blitzrecomp/newblitz v1.0.2 runs / runs -; - - runs / runs -; - .config/Blitz2026Recompiled/blitz.log
mbracali/prj-gd-engine gdul/v1.1.16 runs / runs -; - Guitar Dream Universal Launcher runs / runs -; - .local/share/gd-engine
almost-drowned-rat/Orta-Recompiled v1.2.2 runs / runs /usr/bin/bash:; /bin/bash: AppRun, usr/bin/panzer-dragoon-orta-recomp runs / runs /usr/bin/bash:; /bin/bash: .cache/dconf/user
opennox/opennox v1.9.0-alpha13 exit 2 / exit 2 -; - AppRun no Linux program in it (not a game build) -
vibecodekun/shantaerecomp v0.2.0 runs / runs -; - AppRun, usr/bin/shantae runs / runs -; - -
rodrigojacarei/grr_pc v2026.10.30-1856116 runs / runs -; - - runs / runs -; - .cache/grr-launcher/qmlcache
NoahVl/Birdman64 v1.5.1 runs / runs -; - usr/bin/birdman64 runs / runs -; - .cache/dconf/user, .local/share/birdman64
omegakatana92/ZOE-Recompiled linux-v0.1.0 sig 11 / runs -; - - exit 127 / exit 127 libavcodec.so.58, libavutil.so.56, libswscale.so.5; libavcodec.so.58, libavutil.so.56, libswscale.so.5 -
aidrum/bookworm-enhanced 1.1.0 sig 6 / exit 134 -; - - sig 6 / exit 134 -; - .local/share/Bookworm Enhanced
mamesj/pokemon-fulldex v1.6.0 runs / runs -; - usr/bin/pokemon-ds-wide runs / runs -; - -
OpenRCT2/OpenRCT2 v0.5.7 runs / exit 1 -; - - exit 127 / exit 127 libFLAC.so.12, libicuuc.so.72, libzip.so.4; libFLAC.so.12, libicuuc.so.72, libzip.so.4 .cache/dconf/user
dvilelaf/battlestadium-don v1.1 runs / runs -; - libdon_gs.so, libdon_vu.so runs / runs -; - .local/share/don
power-pudu/egg-of-time v1.5.1 runs / runs -; - - exit 1 / exit 1 -; - -
chasem-dev/sms-launcher v1.1.0 runs / runs -; - AppRun, resources/app.asar exit 1 / exit 1 /usr/bin/bash:; /bin/bash: .cache/dconf/user, .config/mimeapps.list
chasem-dev/orre-launcher v0.5.1 runs / runs -; - AppRun, resources/app.asar exit 1 / exit 1 /usr/bin/bash:; /bin/bash: .cache/dconf/user, .config/colosseum-launcher/Cache
drizztdourden08/relic-of-the-past v0.19.3 runs / exit 133 -; - AppRun, usr/bin/UpdateNix sig 11 / exit 139 -; - .cache/dconf/user, .config/relic-of-the-past/Cache
open-goal/launcher v2.11.2 not a type-2 SquashFS AppImage (the launcher would take the tarball) runs / runs -; - .cache/AppImage-Cache/OpenGOAL-Launcher, .cache/AppImage-Cache/fontconfig
Emil007/Project-Sunburn v1.9.0 runs / exit 133 -; - AppRun runs / exit 133 -; - .cache/dconf/user, .config/Holiday Island/Cache
Gumpolas/TooTawersRecomp 2.0.3 runs / runs -; - AppRun, usr/share/twotowers/TwoTowers.sh no Linux program in it (not a game build) -
vfjoo888/SuperWonders v0.5.0 runs / runs /usr/bin/bash:; /bin/bash: usr/bin/wonder runs / runs /usr/bin/bash:; /bin/bash: -
aidrum/peggle-enhanced 1.3 sig 6 / exit 134 -; - - sig 6 / exit 134 -; - .local/share/Peggle Enhanced
OpenRAC/OpenRAC launcher-v1.1.0 runs / exit 101 -; - apprun-hooks/linuxdeploy-plugin-gtk.sh, usr/bin/openrac-launcher no Linux program in it (not a game build) .cache/dconf/user, .cache/ksycoca6_en-POSIX_KZ8rHmEPGsAhj2R5uQD16sCsCFc=
Lucas-blip-png/dkb-pc-recomp v0.4.2 runs / runs /usr/bin/bash:; /bin/bash: - no Linux program in it (not a game build) -
deadinside28/bloodborne_pc 0.7 runs / exit 127 -; - nix/store/ms538rxr9nwys3sx69k1dr6v5lh4yjyf-appstream-1.1.3/bin/appstreamcli, nix/store/ms538rxr9nwys3sx69k1dr6v5lh4yjyf-appstream-1.1.3/lib/libappstream-compose.so.1.1.3 exit 127 / exit 127 -; - .cache/bbport/fontconfig, .cache/dconf/user
flareteam/flare-game v1.15 exit 127 / exit 127 -; - - no Linux program in it (not a game build) -
PokeRogue-Offline/pokerogue-offline v1.12.2.8-390 runs / runs -; - AppRun no Linux program in it (not a game build) .config/pokemon-rogue-battle/Cache, .config/pokemon-rogue-battle/Code Cache

{"ai_host": 61, "ai_fp": 53, "tb_host": 44, "tb_fp": 42, "tb_none": 10, "ai_none": 1, "n": 70, "appimage_env": 45, "skipped": 0, "error": 0}

Why the ones that didn't start stopped:

  • Petexy/Tekken-Tag-2-Ultimate-Edition, appimage, flatpak: exited 127: /var/home/xarishark/rl-d-trial/Petexy__Tekken-Tag-2-Ultimate-Edition/appimage/usr/bin/ttt2-launcher: error while loading shared libraries: libgtk-4.so.1: cannot open shared object file: No such file o
  • Petexy/Tekken-Tag-2-Ultimate-Edition, tarball, flatpak: exited 127: /home/xarishark/rl-d-trial/Petexy__Tekken-Tag-2-Ultimate-Edition/tarball/Ultimate_Launcher-x86_64/usr/bin/ttt2-launcher: error while loading shared libraries: libgtk-4.so.1: cannot open shared object
  • dalves408/nhlhitzpro-recomp, appimage, host: exited 1: import tkinter as tk / ModuleNotFoundError: Install the python3-tkinter RPM package to use the 'tkinter' module
  • dalves408/nhlhitzpro-recomp, appimage, flatpak: exited 1: import tkinter as tk / ModuleNotFoundError: No module named 'tkinter'
  • dalves408/nhlhitzpro-recomp, tarball, host: exited 1: import tkinter as tk / ModuleNotFoundError: Install the python3-tkinter RPM package to use the 'tkinter' module
  • dalves408/nhlhitzpro-recomp, tarball, flatpak: exited 1: import tkinter as tk / ModuleNotFoundError: No module named 'tkinter'
  • dalves408/nhlhitz2003recomp, appimage, host: exited 1: import tkinter as tk / ModuleNotFoundError: Install the python3-tkinter RPM package to use the 'tkinter' module
  • dalves408/nhlhitz2003recomp, appimage, flatpak: exited 1: import tkinter as tk / ModuleNotFoundError: No module named 'tkinter'
  • dalves408/nhlhitz2003recomp, tarball, host: exited 1: import tkinter as tk / ModuleNotFoundError: Install the python3-tkinter RPM package to use the 'tkinter' module
  • dalves408/nhlhitz2003recomp, tarball, flatpak: exited 1: import tkinter as tk / ModuleNotFoundError: No module named 'tkinter'
  • grovdata/RodLegacy, appimage, host: exited 1: INFO: Debug mode: DISABLED
  • grovdata/RodLegacy, appimage, flatpak: exited 1: INFO: Debug mode: DISABLED / ALSA lib ../../pulse/pulse.c:242:(pulse_connect) [error.] PulseAudio: Unable to connect: Connection refused
  • grovdata/RodLegacy, tarball, host: exited 1: INFO: Debug mode: DISABLED
  • grovdata/RodLegacy, tarball, flatpak: exited 1: INFO: Debug mode: DISABLED / ALSA lib ../../pulse/pulse.c:242:(pulse_connect) [error.] PulseAudio: Unable to connect: Connection refused
  • GNSB/UFC-3-PS4-PORT-LINUX-WINDOWS, appimage, flatpak: exited 1: UFC 3 launcher needs Python PyGObject and GTK 4. Install python-gobject + gtk4 (Arch), or python3-gi + gir1.2-gtk-4.0 (Debian/Ubuntu). CLI: ./ufc3.sh --play (saved settings), or ./ufc3.sh --play /path
  • GNSB/UFC-3-PS4-PORT-LINUX-WINDOWS, tarball, host: killed by signal 6: what(): filesystem error: cannot create directory: No such file or directory [/home/xarishark/rl-d-trial/GNSB__UFC-3-PS4-PORT-LINUX-WINDOWS/home-tb-host/.local/share/shadPS4] / timeout: the monitored command dumped core
  • GNSB/UFC-3-PS4-PORT-LINUX-WINDOWS, tarball, flatpak: exited 134: terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' / what(): filesystem error: cannot create directory: No such file or directory [/home/xarishark/rl-d-trial/GNSB__UFC-3-PS4-PORT-LINUX-WINDOWS/home-tb-fp/.local/share
  • klaussilveira/neortcw, appimage, flatpak: exited 3: env -i XDG_RUNTIME_DIR="/run/user/1000" "flatpak-spawn" "--sandbox" "--watch-bus" "--directory=/" "--forward-fd=14" "prlimit" "--as=12238621900" "/usr/libexec/glycin-loaders/2+/glycin-svg" "--dbus-fd / Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_sur
  • Harold0777/eagle_five_recomp, appimage, flatpak: exited 1: Linux (Arch): sudo pacman -S pyside6 / Windows/macOS: pip install PySide6
  • Harold0777/eagle_five_recomp, tarball, host: exited 1: dispatch: 10742 functions, index 00100000..00399304 (681153 slots) / cannot open memory image './ps2_image.bin'
  • Harold0777/eagle_five_recomp, tarball, flatpak: exited 1: dispatch: 10742 functions, index 00100000..00399304 (681153 slots) / cannot open memory image './ps2_image.bin'
  • hachi23/unicorn_overlord_pc, tarball, host: exited 126: /home/xarishark/rl-d-trial/hachi23__unicorn_overlord_pc/tarball/symbols-39bbff1e49cb/vwport.debug: /home/xarishark/rl-d-trial/hachi23__unicorn_overlord_pc/tarball/symbols-39bbff1e49cb/vwport.debug: ca
  • hachi23/unicorn_overlord_pc, tarball, flatpak: exited 126: /home/xarishark/rl-d-trial/hachi23__unicorn_overlord_pc/tarball/symbols-39bbff1e49cb/vwport.debug: /home/xarishark/rl-d-trial/hachi23__unicorn_overlord_pc/tarball/symbols-39bbff1e49cb/vwport.debug: ca
  • againrom/againrom-engine, tarball, host: exited 2: againrom --editor / with no -assets and no AGAINROM_ASSETS, the working directory and then this binary's own folder are searched for an install
  • againrom/againrom-engine, tarball, flatpak: exited 2: againrom --editor / with no -assets and no AGAINROM_ASSETS, the working directory and then this binary's own folder are searched for an install
  • opennox/opennox, appimage, host: exited 2: Please put Nox game files here and restart the AppImage: /home/xarishark/rl-d-trial/opennox__opennox/home-ai-host/.local/share/opennox
  • opennox/opennox, appimage, flatpak: exited 2: Please put Nox game files here and restart the AppImage: /home/xarishark/rl-d-trial/opennox__opennox/home-ai-fp/.local/share/opennox
  • omegakatana92/ZOE-Recompiled, appimage, host: killed by signal 11: [frontend] first run: no checked disc / timeout: the monitored command dumped core
  • omegakatana92/ZOE-Recompiled, tarball, host: exited 127: /home/xarishark/rl-d-trial/omegakatana92__ZOE-Recompiled/tarball/ZOE-Recompiled-linux-x86_64/ZOE-Recompiled: error while loading shared libraries: libavcodec.so.58: cannot open shared object file: No
  • omegakatana92/ZOE-Recompiled, tarball, flatpak: exited 127: /home/xarishark/rl-d-trial/omegakatana92__ZOE-Recompiled/tarball/ZOE-Recompiled-linux-x86_64/ZOE-Recompiled: error while loading shared libraries: libavcodec.so.58: cannot open shared object file: No
  • aidrum/bookworm-enhanced, appimage, host: killed by signal 6: at System.Threading.Thread.StartCallback() / timeout: the monitored command dumped core
  • aidrum/bookworm-enhanced, appimage, flatpak: exited 134: at Sexy.SexyAppBase.LoadingThreadProcStub() / at System.Threading.Thread.StartCallback()
  • aidrum/bookworm-enhanced, tarball, host: killed by signal 6: at System.Threading.Thread.StartCallback() / timeout: the monitored command dumped core
  • aidrum/bookworm-enhanced, tarball, flatpak: exited 134: at Sexy.SexyAppBase.LoadingThreadProcStub() / at System.Threading.Thread.StartCallback()
  • OpenRCT2/OpenRCT2, appimage, flatpak: exited 1: �[31mAn RCT2 install directory must be specified! Please edit "game_path" in /home/xarishark/.config/OpenRCT2/config.ini. / �[0m
  • OpenRCT2/OpenRCT2, tarball, host: exited 127: /home/xarishark/rl-d-trial/OpenRCT2__OpenRCT2/tarball/OpenRCT2/openrct2: error while loading shared libraries: libFLAC.so.12: cannot open shared object file: No such file or directory
  • OpenRCT2/OpenRCT2, tarball, flatpak: exited 127: /home/xarishark/rl-d-trial/OpenRCT2__OpenRCT2/tarball/OpenRCT2/openrct2: error while loading shared libraries: libFLAC.so.12: cannot open shared object file: No such file or directory
  • power-pudu/egg-of-time, tarball, host: exited 1: -h, --help Print command-specific usage / error: expected command argument
  • power-pudu/egg-of-time, tarball, flatpak: exited 1: -h, --help Print command-specific usage / error: expected command argument
  • chasem-dev/sms-launcher, tarball, host: exited 1: |name lookup : 0.05 ( 46%) 113k ( 5%) / TOTAL : 0.11 2434k
  • chasem-dev/sms-launcher, tarball, flatpak: exited 1: |name lookup : 0.05 ( 44%) 113k ( 5%) / TOTAL : 0.11 2434k
  • chasem-dev/orre-launcher, tarball, host: exited 1: -h, --help Print command-specific usage / error: expected command argument
  • chasem-dev/orre-launcher, tarball, flatpak: exited 1: -h, --help Print command-specific usage / error: expected command argument
  • drizztdourden08/relic-of-the-past, appimage, flatpak: exited 133: [2:1119/031444.372453:FATAL:sandbox/linux/suid/client/setuid_sandbox_host.cc:166] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm abor
  • drizztdourden08/relic-of-the-past, tarball, host: killed by signal 11: timeout: the monitored command dumped core
  • drizztdourden08/relic-of-the-past, tarball, flatpak: exited 139:
  • Emil007/Project-Sunburn, appimage, flatpak: exited 133: [2:1119/031545.253857:FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to mak
  • Emil007/Project-Sunburn, tarball, flatpak: exited 133: [2:1119/031606.294507:FATAL:setuid_sandbox_host.cc(163)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to mak
  • aidrum/peggle-enhanced, appimage, host: killed by signal 6: at System.Threading.Thread.StartCallback() / timeout: the monitored command dumped core
  • aidrum/peggle-enhanced, appimage, flatpak: exited 134: at Sexy.SexyAppBase.LoadingThreadProcStub() / at System.Threading.Thread.StartCallback()
  • aidrum/peggle-enhanced, tarball, host: killed by signal 6: at System.Threading.Thread.StartCallback() / timeout: the monitored command dumped core
  • aidrum/peggle-enhanced, tarball, flatpak: exited 134: at Sexy.SexyAppBase.LoadingThreadProcStub() / at System.Threading.Thread.StartCallback()
  • OpenRAC/OpenRAC, appimage, flatpak: exited 101: Failed to initialize gtk backend!: Error { domain: g-dbus-error-quark, code: 2, message: "GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown" } / note: run with RUST_BACKTRACE=1 environment variable to display a
  • deadinside28/bloodborne_pc, appimage, flatpak: exited 127: /home/xarishark/rl-d-trial/deadinside28__bloodborne_pc/appimage/AppRun: cannot unshare: Operation not permitted
  • deadinside28/bloodborne_pc, tarball, host: exited 127: bbport: /nix/store/vs559v703w0kvd0dldi4sv4byy9l3bn7-bbport-0.1/libexec/bbport: No such file or directory
  • deadinside28/bloodborne_pc, tarball, flatpak: exited 127: bbport: /nix/store/vs559v703w0kvd0dldi4sv4byy9l3bn7-bbport-0.1/libexec/bbport: No such file or directory
  • flareteam/flare-game, appimage, host: exited 127: /var/home/xarishark/rl-d-trial/flareteam__flare-game/appimage/usr/bin/flare: symbol lookup error: /usr/lib64/pipewire-0.3/jack/libjack.so.0: undefined symbol: pw_log_topic_register
  • flareteam/flare-game, appimage, flatpak: exited 127: /var/home/xarishark/rl-d-trial/flareteam__flare-game/appimage/usr/bin/flare: symbol lookup error: /usr/lib/x86_64-linux-gnu/libjack.so.0: undefined symbol: pw_log_topic_register

The "runs anywhere" AppImage tooling (pkgforge's Anylinux/uruntime, and
Tauri's portable AppImage branch) packs with DwarFS, not SquashFS. Three
catalog games ship that way (OpenGOAL, Carpocalypse 2, Bloodborne Linux)
and would have stopped installing on Linux. They're read with the
dwarfs crate (zstd only) and written out by the same code as SquashFS
ones: setuid dropped, links leaving the folder dropped, room checked
first, a damaged image caught. Their embedded recomplauncher.json is
read too. dwarfs-enc builds the test images and is test-only.
…rs work

U's review made swap::put_in_place take the old release's files: a file
where the game has a folder (or the other way round) is set aside only
when all of it is the old release's. D's callers pass:
- install: the previous record's files, as U does;
- bringing in an AppImage in place (plain.rs): the record's files (an
  older launcher's release, or what an earlier unpack put there);
- mods, installer releases, game copies (install::unpack_with): nothing,
  since no list of what they put there before is kept. Such a clash
  stops the unpack with nothing changed, never sets the player's files
  aside. A file over a file of the same name is replaced as before.
  Tested with a mod whose file lands on a folder of the player's.
Found running the launcher's own AppImage on Bazzite and dumping what a
game it starts gets: linuxdeploy's GTK hook pins GTK_THEME to
Adwaita:light or Adwaita:dark for the launcher (custom themes break
inside an AppImage), and its AppRun sets PYTHONDONTWRITEBYTECODE=1.
Both reached every game, so a GTK game (or a game's GTK launcher) lost
the player's theme. They're taken out for games when the launcher runs
as an AppImage and has exactly those values; a theme the player set
themselves stays. Everything else the AppImage runtime sets (APPIMAGE,
APPDIR, OWD, LD_LIBRARY_PATH, GTK_PATH, GST_*, GIO, PERLLIB...) was
already kept from games, and the run confirmed it.
From U's review. swap's remove_any asked symlink_metadata, which says a
link to a folder (a symlink or a junction) isn't a folder, so it called
remove_file: Windows refuses that (Access is denied, os error 5), and
install::patient then retried the refusal for about ten seconds. Such a
link carries the directory attribute, and goes with remove_dir, which
takes the link and leaves the folder it points at.

Tested on Windows 11 (windows-vm) with a junction made by mklink /J (no
administrator needed): the link goes, the folder and its files stay.
The test fails on the old code with os error 5. All 19 swap tests pass
there.
… is unpacked there

Bringing in an AppImage that sits in a game folder of the player's own, inside the
Recomp Library, unpacked it in place and marked the folder the launcher's (unpacked),
so uninstall's "delete files" could remove everything else of theirs in it. Only a
folder the launcher made, or a game it installed, is marked now; the unpack's files are
still in the record. A newer AppImage is matched, and an earlier unpack's files dropped,
by from_appimage instead, and Bring Your Recomps still doesn't move such a game.
play is async and reaches in_plain_folder through the sync start_game path, and
setup_copy and setup_inputs_run are sync commands Tauri runs as futures, so a
multi-GB unpack held a runtime worker. It now runs in block_in_place, as adopt_add's
does. Where there's no multi-threaded runtime (a test, a plain thread) it runs
directly, since block_in_place would panic on a single-threaded one.
@Xarishark
Xarishark force-pushed the feat/linux-plain-folders branch from 0d03826 to b71ee8f Compare November 19, 2026 13:59
@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 16:40
@elripalda
elripalda merged commit dc10ba9 into elripalda:main Nov 19, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/linux-plain-folders branch November 23, 2026 23:56
elripalda pushed a commit that referenced this pull request Nov 24, 2026
…em, and the guide on running unpacked (#486)

* A program named inside an unpacked AppImage gets the libraries it brings

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 (#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 #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.

* A program in an unpacked AppImage gets APPDIR and OWD, and links left out are named

What the AppImage runtime sets for the program it starts now comes from one
place (appimage_vars), the same for Play and a setup step: APPDIR (the
AppImage's folder), OWD (the folder it starts in) and, for AppRun, ARGV0.
A program named inside the AppImage instead of its AppRun gets APPDIR and
OWD too, besides the AppImage's libraries, so one that finds its files
through APPDIR does when a profile names it. A program in a plain folder
gets nothing of this. APPIMAGE is still never set.

The trail named only how many links an unpack left out (absolute ones, or
ones leading out of the AppImage). It now names the first five and where
they pointed, so a game that won't start for a missing file is found.

Tried on bazzite-kde with real releases: Shipwright, Savage Wind, SpartanPort,
Dusklight, Wind Waker HD, Melee, Super Mario World, Prime, LAS and MKW all
start from their unpacked folders with Easy Setup skipped, with APPDIR, OWD
and ARGV0 set. With Easy Setup on, Wind Waker HD, Ridge Racer Type 4, LAS and
UltraCombo start (UltraCombo's program named directly, with APPDIR and its
lib folder); the others ask for the player's copy first, as they should.

* Developer guide: why Linux plays AppImages unpacked, and how to make yours run that way

The AppImages section now says why every Linux build of the launcher unpacks
an AppImage instead of running it: mounting needs FUSE (and can't happen in
the Flatpak at all), a mount is read-only and moves on every start, and
updates, saves and mods need a folder they can reach.

A new part, "Your AppImage has to run unpacked", asks for the same thing as a
tarball, with a way to try it (--appimage-extract, then AppRun with APPIMAGE
unset) and what makes it work: find files through APPDIR or /proc/self/exe,
bring libraries an rpath or AppRun finds, don't move yourself out of your
folder, don't bundle system libraries an AppRun's LD_LIBRARY_PATH would hand
to cp and mkdir, and keep links inside. The release rules and Recomp
Standards point there, and the AppRun bullets mention OWD and the links
left out.

* Developer tools warn about a program named inside an unpacked AppImage, and check an AppImage entry as its AppRun

A start.program or prepare.program that names a program inside an unpacked
AppImage (mkw-recomp's mkw) starts without its AppRun. The launcher gives it
the AppImage's library folders, APPDIR and OWD, but nothing else that AppRun
sets up. Developer tools now say so in yellow, and say when that's fine: when
the program runs on its own. They use the same appimage_root as the start code,
so the check and what Play does can't drift apart.

Checking a release's own recomplauncher.json, developer tools read it as
written, without the AppRun mapping Play applies (profile::to_apprun). So
every profile that names its AppImage, as the guide asks, got a red "None of
start.program is in this folder" once the AppImage was unpacked, while Play
started it fine. The file is now read as Play reads it.

The developer guide says when to name a program inside an AppImage and that
developer tools warn about it.

Tested on bazzite-kde with a debug build and real releases: MKW (profile names
mkw) shows "Play starts mkw" with the warning; Savage Wind (profile names its
AppImage) shows "Play starts AppRun --game", with no error. cargo test: 1019
passed, 4 of them new.
elripalda pushed a commit that referenced this pull request Nov 24, 2026
…ame the folder that stopped it (#467)

* A save that can't be put back says which folder stopped it

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.

* A cloud save that can't be put in place before Play no longer stops the 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.

* Translations for the cloud save that couldn't be put in place

* A program named inside an unpacked AppImage gets the libraries it brings

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 (#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 #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.

* Before Play, a cloud save that can't be put in place asks whether to 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.

* Translations for the question before playing without the cloud save

* Move the unpacked AppImage library fix to a PR of its own

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.
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.

2 participants