Repository navigation
Description
Refs #2227
Severity: Low. Every desktop install checked pulls in libwayland-egl1 (GTK 3 and GTK 4 depend on it, and ubuntu-desktop-minimal, xubuntu-core and even i3 + xorg + xinit without recommends bring it in). So this hits only stripped-down hosts: containers, distrobox or toolbox images, server installs with a bare X session. When it does hit, the message is useless. The preflight exists for exactly this case, and it stays silent.
What happens
AppImage 0.1.0-beta.20261023 with --appimage-extract-and-run, under Xvfb. The host has Mesa, libegl1, libopengl0, libgbm1, libdrm2 and libwayland-client0, but no libwayland-egl1:
- Ubuntu 22.04, Ubuntu 24.04, Debian 12, Debian 13, Fedora 41: an "Error" dialog that says "Failed to initialize video: Graphics module not found", and no main window. The log shows:
error: os_dlopen(libobs-opengl.so.30->libobs-opengl.so.30): libwayland-egl.so.1: cannot open shared object file: No such file or directory error: Failed to initialize video: Graphics module not found - After installing only
libwayland-egl1(Debian/Ubuntu) orlibwayland-egl(Fedora): the main window and the first-run wizard appear on all five. - Arch Linux: OK.
mesapulls inwayland, which containslibwayland-egl.so.1.
A static ldd sweep of every ELF file in the AppImage payload on the same hosts finds exactly one unresolved library, libwayland-egl.so.1. It is needed by usr/lib/obs-studio-rust/libobs-opengl.so.30 and usr/lib/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so.
When libEGL/libOpenGL/libgbm/libdrm/libwayland-client are missing, the preflight works well: "OBS-Studio-Rust needs these libraries from your system, and they were not found: … install libwayland-client0".
Root cause
build-aux/appimage/assemble-appdir.sh#L68:EXCLUDEkeepslibwayland-(client|egl|server)out of the bundle. That is correct, since it is part of the driver stack (seeREADME.md#L58).build-aux/appimage/hostlib/host-libs.jsonlistswayland-clientasrequired, but there is nowayland-eglentry.obs-hostlib-check, which AppRun runs first (AppRun#L219), doesn't look for it.- CI never sees a host without it.
test-appimage.sh#L215(Debian/Ubuntu) and#L236(Fedora) installlibwayland-egl1/libwayland-eglas part of the driver stand-in, and so doesappimage.yaml#L307.
Fix plan
Add a required entry to host-libs.json, after wayland-client:
{
"name": "wayland-egl",
"kind": "required",
"feature": "OpenGL rendering (libobs-opengl links it, also under X11)",
"sonames": ["libwayland-egl.so.1"],
"symbols": ["wl_egl_window_create", "wl_egl_window_destroy"],
"install": {"debian": "libwayland-egl1", "fedora": "libwayland-egl", "arch": "wayland", "suse": "libwayland-egl1", "nixos": "run through appimage-run or nix-ld (programs.nix-ld.libraries = [ pkgs.wayland ])"}
}hostlib/build.py builds obs-hostlib-check from the required entries, so nothing else needs to change.
RED/GREEN test (CI-runnable)
- Static (
ci/test_appimage_host_stack.py, new case): for every soname thatassemble-appdir.sh'sEXCLUDEkeeps out and that some bundled ELF file in the built AppDir has asDT_NEEDED, there must be ahost-libs.jsonentry (required or optional) or an explicit allowlist entry (the libGL/GLX/vendor family, whichlibOpenGL/libEGLcover). RED today:libwayland-egl.so.1is NEEDED bylibobs-opengl.so.30and isn't listed. A cheaper variant without a build: compare against theDT_NEEDEDlist oflibobs-openglrecorded by the build. - Runtime (
test-appimage.sh, newmissing-host-libscenario on one Debian image): install the driver stand-in withoutlibwayland-egl1, run the AppImage, and expect exit 127 withlibwayland-egl.so.1andinstall libwayland-egl1in stderr. RED today: OBS starts and shows the "Graphics module not found" dialog instead.
Activity
zackees commentedon Oct 25, 2026
/ready
Meets the definition of Ready: reproduced on five hosts with the exact log line, root cause (
host-libs.jsonhas nowayland-eglentry, soobs-hostlib-checkstays silent), fix scope (addlibwayland-egl.so.1as required with the per-distro package hint). Acceptance: the preflight nameslibwayland-egl1on a host without it. AGENTS.md packaging rule applies: extendbuild-aux/appimage/test-appimage.sh(or the hostlib check's own test) and show it failing first. P3 (only stripped hosts), size:S.rdoupe commentedon Oct 25, 2026
Claiming: #2298.
test: Check the AppImage preflight knows host libs
appimage: Check for libwayland-egl.so.1 on start
appimage: Check for libwayland-egl on the host (obs-rust#2323)