Skip to content

Exit cleanly when libxkbcommon-x11 is missing - #14

Merged
DevanMetz merged 1 commit into
mainfrom
fix/xkbcommon-graceful
Oct 28, 2026
Merged

DevanMetz merged 1 commit into
mainfrom
fix/xkbcommon-graceful

Conversation

@DevanMetz

Copy link
Copy Markdown
Owner

On Linux the GUI panicked at startup with Library libxkbcommon-x11.so could not be loaded when the X11 keyboard library wasn't installed.

  • Before eframe starts, check the keyboard libraries for the backend winit will pick (Wayland: libxkbcommon; X11: also libxkbcommon-x11) using the same xkbcommon-dl loader winit uses.
  • If one can't load, print one line naming the package (Debian/Ubuntu, Fedora, Arch) and exit 1.
  • --headless skips the check and keeps working without the library.
  • README (shipped in the Linux tarball) lists the runtime packages.
  • Unit tests cover backend selection and the simulated load failure.

Verified locally by hiding libxkbcommon-x11.so.0 with bwrap: GUI prints featherclick: cannot load libxkbcommon-x11; install libxkbcommon-x11-0 (Debian/Ubuntu) or libxkbcommon-x11 (Fedora/Arch) and exits 1; headless clicks still run. Windows and macOS are untouched.

@DevanMetz
DevanMetz merged commit 5eaadfe into main Oct 28, 2026
3 checks passed
@DevanMetz
DevanMetz deleted the fix/xkbcommon-graceful branch October 28, 2026 02:13
@DevanMetz DevanMetz mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant