Conversation
Pass APPIMAGE_EXTRACT_AND_RUN as an environment variable instead of the --appimage-extract-and-run CLI flag. The flag is intercepted by the AppImage runtime, so forwarding it to a non-AppImage executable (e.g. an extracted AppRun from appimagetool --appimage-extract) makes appimagetool fail with: Option parsing failed: Unknown option --appimage-extract-and-run. The environment variable is ignored by non-AppImage executables and achieves the same no-FUSE behavior on hosts without libfuse2.
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.
Problem
scripts/linux/build-appimage.shinvokes appimagetool with the--appimage-extract-and-runCLI flag. That flag is intercepted by the AppImage runtime and never reaches the binary — but only when the invoked path is an actual (Type 2) AppImage. WhenAPPIMAGETOOLpoints at an already-extracted AppRun (the standard workaround on hosts withoutlibfuse2), the flag leaks through to appimagetool's own option parser and the build fails:Solution
Use the
APPIMAGE_EXTRACT_AND_RUN=1environment variable instead of the CLI flag. The runtime honors it identically, and non-AppImage executables simply ignore it, so both invocation styles work — including on hosts without libfuse2.Testing
Built
Nuvio-Linux-x86_64-0.1.21-alpha.AppImage(157 MB) locally both ways:APPIMAGETOOL→ extracted AppRun (previously failed with the error above) ✅APPIMAGETOOL→ real appimagetool 1.9.1 AppImage on a host without libfuse2 ✅