Repository navigation
Fix AppImage DMA-BUF fallbacks - #8813
wasimysaid wants to merge 5 commits into
Conversation
Detect unusable host GLES before WebKit starts, disable DMA-BUF for AppImage Wayland sessions, and add a no-GLES portability lane. Preserve native-package behavior and explicit operator overrides. Adapted from the AppImage compatibility work in unslothai#8343. Co-authored-by: Thomas Eric <[email protected]>
Replace the global AppDir LD_LIBRARY_PATH launcher with an ORIGIN-only closure, keep host graphics/display/network ABI families host-owned, and verify the boundary after all linuxdeploy plugins. Extend clean-host prerequisites without weakening the no-GLES lane. Adapted from the mechanism-level AppImage design and measured host-boundary work in unslothai#8343. Co-authored-by: Thomas Eric <[email protected]>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 649af18b5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Validate the repository-installed AppRun separately from the four digest-pinned remote tools so desktop release jobs accept the hardened local launcher. Co-authored-by: Thomas Eric <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Confirmed the gap in studio/src-tauri/src/linux_webkit.rs, where rendering_plan never considers an AppImage host without a usable libGLESv2, and the renderer selection change looks right. The direction is good, but this branch also replaces the AppRun launcher and adds the patchelf RUNPATH finalizer plus the verifier and release-workflow rewrites; could you split those out and keep this one to the renderer selection, then rebase off the conflicts? |
|
Closing this one as its code is already in the main branch after #9113. |
Summary
dlopen("libGLESv2.so.2")before WebKitGTK initializesWEBKIT_DISABLE_DMABUF_RENDERER=1when host GLES is unavailableWEBKIT_DMABUF_RENDERER_FORCE_SHM=1behavior for native packageslibGLESv2.so.2Credit
This ports the two focused runtime fixes identified and tested by @ThomasEricB in #8343. Thomas is included as a co-author on the commit.
Verification
cargo test --no-fail-fast— passedtests/security/test_release_desktop_appimage.py— 9 passedgit diff --check— passedlibGLESv2.so.2absent — passed and selectedWEBKIT_DISABLE_DMABUF_RENDERER=1WEBKIT_DISABLE_DMABUF_RENDERER=120260716.1) into a version-pinned Distrobox and ran the same AppImage against the inherited real Wayland compositor and exposed DRM devices — rendered startup and desktop authentication passed, with the full DMA-BUF disable loggedThe SteamOS check validates the exact userspace and real display/device path, but this host is not a Steam Deck/RADV GPU, so it is not presented as a hardware-exact reproduction of Thomas's Deck result.