Skip to content

appimage: test coverage for host driver search paths (#722) #892

Closed

Description

@zackees

#722 (2fd806d) made build-aux/appimage/AppRun export host driver search paths (GBM_BACKENDS_PATH, LIBVA_DRIVERS_PATH, __EGL_VENDOR_LIBRARY_DIRS, __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS, VK_DRIVER_FILES), including the NixOS driver closure under /run/opengl-driver, only when the user has not set them. Without it, NVIDIA on NixOS Wayland silently fell back to Mesa llvmpipe (~10 fps instead of 30, reported on beta.20261014, which predates #722). Related: #846 (GPU acceleration status light).

#722 shipped without the packaging test AGENTS.md requires (#426).

Wanted: test-appimage.sh runs the packaged AppImage with a fake NixOS driver tree (/run/opengl-driver/share/egl/egl_external_platform.d/10_nvidia_wayland.json and the GBM, DRI, glvnd and Vulkan dirs), reads the running obs process's /proc/<pid>/environ and asserts:

  1. the variables are set and list the NixOS dirs plus the standard dirs that exist;
  2. they are unset (or only the standard dirs) when no NixOS dirs exist;
  3. a user-provided value is kept.

RED against the pre-#722 AppRun, GREEN against the current one.

Activity

  1. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Claiming: 1. add test-apprun-driver-env.sh (namespace-isolated AppRun check, nixos/none/user), 2. wire it into test-appimage.sh bundle + first-start (real obs /proc environ). PR today.

  2. added
    claimed
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions