Repository navigation
appimage: Point libxkbcommon at the host's keyboard data when /usr/share/X11/xkb is missing (#2437) - #2438
Merged
Conversation
…are/X11/xkb is missing (GREEN, #2437) NixOS keeps the keyboard data at /etc/X11/xkb and sets no XKB_CONFIG_ROOT. The bundled libxkbcommon only searched its compiled default, so Qt's Wayland plugin got no xkb context and crashed at start. AppRun now exports the first of /etc/X11/xkb and /run/current-system/sw/share/X11/xkb that exists, unless the user set XKB_CONFIG_ROOT or the default exists.
zackees
enabled auto-merge
October 26, 2026 02:54
rdoupe
pushed a commit
to rdoupe/obs-studio
that referenced
this pull request
Oct 26, 2026
obs-rust#2439's (obs-rust#2441) obs-rust#2438 and obs-rust#2439 fixed obs-rust#2437 independently and merged a minute apart. Master had two XKB_CONFIG_ROOT blocks in AppRun, two features ledger lines, and two checks in test-apprun-driver-env.sh. The user case preset the variable twice with different values, so one check always failed: FAIL [user] XKB_CONFIG_ROOT: expected set:/user/selected/XKB_CONFIG_ROOT, obs has set:/user/selected/xkb This reverts obs-rust#2438 (6eeb47d). obs-rust#2439's code, check and ledger line stay.
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.
Fixes #2437
Change
AppRun exports
XKB_CONFIG_ROOTonly when the user hasn't set it and/usr/share/X11/xkb(the bundled libxkbcommon's compiled default) doesn't exist. It uses the first of/etc/X11/xkb(NixOS, fromservices.xserver.xkb) and/run/current-system/sw/share/X11/xkbthat exists. On every other distro, nothing changes.Tests
build-aux/appimage/test-apprun-driver-env.shnow also checks theXKB_CONFIG_ROOTthe running obs process sees, in each case:test-appimage.shalready runs this check (--check) against the real packaged OBS on each distro container, so it covers the packaged AppImage too.4e771d2f0), run on a NixOS 26.05 host (no/usr/share/X11/xkb,/etc/X11/xkbpresent):Not done: a real start of the packaged AppImage on a Wayland compositor with no
/usr/share/X11/xkb, which is the issue's suggested packaged check. The existing test checks what the loader sees, not a full Qt Wayland start.