Linux/NixOS (GLF-OS): builder tools download fails with "The builder's AppImage could not be unpacked (137)" #66
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher#66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
On NixOS (GLF-OS), the launcher cannot finish step 1 ("Game files"). While it downloads "Builder tools", it stops with:
"The download stopped: The builder's AppImage could not be unpacked (137): The Longshot B..." (the message is cut off in the UI)
At the same time a dialog "Longshot Builder" appears: "The Longshot Builder has no window of its own: the Longshot Launcher builds the game and starts it. Get the launcher from https://longshot.magicbean.dev/download". "Try again" gives the same result, and "Next" stays disabled.
Environment
What I tried (same result every time)
Observation
Running an AppImage directly from a terminal on this system prints this instead of running it normally:
No squashfs-root folder is created. (I ran this on the launcher AppImage, not on the builder AppImage.)
Hypothesis (not verified)
AppImages seem to be intercepted by appimage-run on NixOS, which extracts to a cache and passes the arguments to the app, instead of treating --appimage-extract as the AppImage runtime does. If the launcher unpacks the builder AppImage that way, it would run the builder, which shows its "no window" message and returns a non-zero code.
Question
Is the NixOS case known? Could the launcher unpack the builder differently, or is there a documented workaround?
Screenshots of the error and of the dialog are attached.
Same in my side
Solutions to solve this
NixOS side:
Warning: You need run all appimage with appimage-run <myapp.appimage> and Desktop Application can be broken if .desktop Exec is not prefixed by appimage-run and run directly the appimage.
Project side (purposed by Claude Code but not tested):
EDIT: The patch works, I'm preparing PR with more clean path. Check if binfmt is enabled on the host and call only ClearAppImageMagic if binfmt is enabled.