Skip to content

Setup AppImages unpack themselves on a PC without FUSE 2 - #179

Merged
elripalda merged 1 commit into
elripalda:mainfrom
KevinBonnoron:setup-appimage-no-fuse
Nov 14, 2026
Merged

elripalda merged 1 commit into
elripalda:mainfrom
KevinBonnoron:setup-appimage-no-fuse

Conversation

@KevinBonnoron

@KevinBonnoron KevinBonnoron commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

When a setup comes as an AppImage, own_setup::spawn_with runs it as is. An example is xc2-recomp's XC2-Setup-0.1.12-linux.AppImage, which Easy Install opens after the download. On a PC without FUSE 2 (NixOS, containers, some immutable distributions) the AppImage can't mount itself and stops right away:

Error: No suitable fusermount binary found on the $PATH
Cannot mount AppImage, please check your FUSE setup.

A game's AppImage already handles this at Play: lib.rs sets APPIMAGE_EXTRACT_AND_RUN=1 when sysenv::has_fuse2() is false. Setups now get the same fallback. It is set after clean_std, which removes the launcher's own AppImage variables.

How you tested it

On NixOS (GNOME, Wayland), with the launcher running without FUSE 2:

  • Before: xc2-recomp's setup AppImage stopped with the FUSE error above.

  • After: it unpacked itself (/tmp/appimage_extracted_…/installer/gui.py), built the game from my copy, and Play then started the native build.

  • npm test: 532 tests pass. The 4 that fail (a_game_that_hands_off_keeps_counting_while_its_folder_runs and three in update_rollback_tests) fail the same way on main (b0fffa4) on NixOS. They call /bin/sleep and /usr/bin/true, which NixOS doesn't have, and are unrelated to this change.

  • node --test tests/*.test.cjs: one test fails, for the same reason and on main too. It is "AppImage helper cleans staging while a successful replacement keeps running" in appimage-update.test.cjs, whose fixture runs exec /bin/sleep 30.

  • Tried it in the launcher

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 (not applicable)

A setup that comes as an AppImage (an Easy Install game's builder) was run as is, so on a PC without FUSE 2 (NixOS, containers) it stopped right away with "Cannot mount AppImage". It now unpacks itself to run, as a game's AppImage already does at Play.
@KevinBonnoron
KevinBonnoron marked this pull request as ready for review November 14, 2026 17:03
@elripalda
elripalda merged commit 3168d3d into elripalda:main Nov 14, 2026
@KevinBonnoron
KevinBonnoron deleted the setup-appimage-no-fuse branch November 14, 2026 20:52
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