Linux Installation (Arch, Debian, Tumbleweed)
No luck installing/running "openhuman" on any of my linux distros.
On Arch: following errors/issue. this is the only package available on AUR
❯ yay openhuman
1 aur/openhuman-core-bin 0.61.8-1 (+0 0.00) [4h14m] (Installed)
Core binary for OpenHuman
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
❯ openhuman-core
openhuman-core: error while loading shared libraries: libxdo.so.3: cannot open shared object file: No such file or directory
Same/similar error when trying to run AppImage version.
❯ ./OpenHuman_0.61.2_amd64.AppImage
ERROR: ld.so: object 'anylinux.so' from --preload cannot be preloaded (cannot open shared object file): ignored.
/tmp/.mount_OpenHudnbejk/bin/OpenHuman: error while loading shared libraries: libxdo.so.3: cannot open shared object file: No such file or directory
Implementation Plan
Triage Assessment
This issue reports two related but distinct libxdo.so.3 failures on Arch Linux (and potentially Debian/Tumbleweed per the title). Both are real, reproducible, and affect live users (see also #5147, comments on #4020). Neither is subsumed by a single canonical issue: #5147 tracks only the AppImage dimension, while the AUR openhuman-core-bin package issue has no existing tracker. The problem is upstream (enigo dependency is non-optional in the core binary) and in packaging (AppImage sharun runtime resolution).
User impact: high -- a fresh Arch Linux install cannot run OpenHuman through either distribution channel. Workaround exists (extract AppImage + run direct, sudo pacman -S libxdo for the AUR package) but is undiscoverable.
Proposed Scope
In-scope:
- Fix the AppImage
libxdo.so.3load failure on rolling-release distros where the bundled library exists inshared/libbut sharun fails to resolve it. - Make
enigo(and itslibxdo.so.3linkage) a compile-time-optional dependency so that--no-default-featuresheadless builds and community AUR packages can ship a binary that does not requirelibxdoat all. - Document the
enigo/libxdo.so.3runtime dependency for downstream packagers (AUR, Nix, Homebrew Linux).
Out-of-scope: The separate sharun segfault / libssl.so.3 version problem tracked by #3716; the libcef.so not found variant tracked by #5147.
Implementation Steps
-
Make enigo compile-time optional
- File:
Cargo.tomlline 256 -- changeenigo = "0.3"toenigo = { version = "0.3", optional = true }. - File:
Cargo.tomlfeatures section -- add a lightweight feature flag (e.g.,input-simulation = ["dep:enigo"]or fold into the existingdesktop-automationfeature). The existing comment at line 585-586 flags enigo as shared withvoice; verify whethervoice::text_input::insert_text(which uses enigo for clipboard-paste atsrc/openhuman/voice/text_input.rs:91) should fall back to a non-enigo paste method when the feature is off, or whetherinput-simulationis a subset ofvoiceas an implicit dependency. Seevoicegate facade pattern insrc/openhuman/voice/stub.rsfor precedent. - File:
src/openhuman/voice/text_input.rs-- gate theuse enigo::...block and theinsert_text_enigopath with#[cfg(feature = "input-simulation")]; provide a no-op orErr("text insertion requires input-simulation feature")fallback. - File:
src/openhuman/tools/impl/computer/mouse.rsandkeyboard.rs-- already gated by#[cfg(feature = "desktop-automation")]at the registration site (src/openhuman/tools/ops.rslines 249-261), so enigo usage inside those files is already dormant when desktop-automation is off. Verify nouse enigo::...statement survives at the module level when the feature is off (it may need a#[cfg]on theusestatements too if Rust 2024 edition strictness applies). - File:
src/openhuman/accessibility/vision_click.rs-- enigo usage here is inside a#[cfg(feature = "desktop-automation")]block (the function body gated by the module itself). Verify. - File:
src/openhuman/accessibility/app_fastpaths/app_shortcuts.rs-- line 158 references enigo'sAltkey in a comment only; no action needed.
- File:
-
Verify and harden the AppImage sharun library resolution
- The
patch_apprun_sharun_cwdfunction inscripts/release/strip-appimage-graphics-libs.shinjectscd "$APPDIR"beforeexec "$@"in AppRun to fix sharun CWD-based preload resolution. This fix (from #2829) may not apply to all AppRun formats (the function warns"could not locate 'exec \"$@\"' in AppRun"at line 592). Investigate whether current releases' AppRuns actually trigger this path, and if not, extend the sed pattern to cover the actual AppRun content generated by the current bundler version. - Verify that
validate_appimage_required_libs(from #4805) runs on the final packedsquashfs-rootand confirmslibxdo.so*is present. A false pass would mean a library present during validation is missing after repack -- add a post-repack revalidation step.
- The
-
CI coverage for rolling-release Linux distros
- Extend the existing e2e Linux test matrix (
.github/workflows/e2e-reusable.ymletc.) to include at least one rolling distro container (Arch or Fedora Rawhide). The existing build happens onubuntu-22.04/ubuntu-24.04, and the AppImage is tested only on those same bases, which have stable glibc and wide soname compatibility. A rolling distro would catchlibxdo.so.3/sharunregressions before release. - The test should extract the AppImage via
--appimage-extract, verifylibxdo.so*exists inshared/lib, and verify the binary runs with--helpwithout aerror while loading shared librarieserror.
- Extend the existing e2e Linux test matrix (
-
Document runtime dependency for packagers
- File:
INSTALL.md(or a newdocs/linux-dependencies.md) -- document that the binary hard-linkslibxdo.so.3(via theenigocrate for keyboard/mouse simulation). Downstream packagers (AUR, Nix, Homebrew Linux) should listlibxdoas a runtime dependency. Once step 1 ships, document the newinput-simulationfeature flag for headless builds.
- File:
Verification
- Unit:
src/openhuman/voice/text_input_tests.rs-- add a test thatenigo-dependent code compiles with and without the new feature flag. - Integration: Extend
scripts/release/test-strip-appimage-rpaths.shto verifylibxdo.so*is present AND the patched AppRun'scd "$APPDIR"is actually applied in the test fixture. - Packaging smoke: After step 1, run
GGML_NATIVE=OFF cargo check --manifest-path Cargo.toml --no-default-features --features tokenjuice-treesitterto confirm the core compiles withoutenigolinked. - Release gate: After step 2, manually reproduce the Arch failure (extract release AppImage in an Arch container, run the binary) and confirm it starts without
libxdo.so.3error.
Risks and Open Questions
- enigo + voice coupling risk:
voice/text_input.rs:insert_textuses enigo to simulate Ctrl+V for paste. If the newinput-simulationfeature is off butvoiceis on, this function must gracefully degrade (clipboard-only without paste, or an error). The voice facade stub pattern (src/openhuman/voice/stub.rs) is the precedent: use a stub function that returnsErr("...")rather than panicking or silently doing nothing. Confirm that this degradation is acceptable product behavior. - sharun AppRun format variance: The bundler version in use (sharun_cef) may generate AppRuns differently from what
patch_apprun_sharun_cwdexpects. Inspect a real release AppRun from the latest CI artifact to confirm the sed pattern matches. If it does not, the fix from #2829 has never actually been applied to shipping artifacts. - Arch AUR package version skew: The AUR
openhuman-core-binpackage ships version 0.61.8-1 (as of the report date), which predates the AppRun CWD fix. The AUR maintainer would need to update. This is documented as an open question, not a blocker for the repo fix.
Acceptance Criteria
- A build of
openhuman-corewith--no-default-features --features tokenjuice-treesitter(without anyinput-simulationfeature) produces a binary that does notNEED libxdo.so.3(verified viareadelf -d/ldd). - A fresh Arch Linux container can run the latest
-amd64.AppImagerelease artifact via--appimage-extract+ direct binary invocation without encountering thelibxdo.so.3error fromld.so. INSTALL.mdor equivalent documentation listslibxdoas a runtime dependency for the default (full-feature) build, and documents theinput-simulationfeature flips for slim builds.- Rolling-release distro smoke test is added to the CI release gate and passes on the next tagged release.
not sure if anyone else ran into this type of issue or has a better fix.
I asked AI to patch it. (not sure what it do) This is what it do.
OpenHuman 0.61.2 (OpenHuman_0.61.2_amd64.AppImage)
The bundled AppImage's sharun runtime is broken on CachyOS / hardened
kernels (kernel 7.1.3-2-cachyos). It exposes an unexpanded
${SHARUN_EXTRA_LIBRARY_PATH} literal that prevents libcef.so from
being found, and the anylinux.so preload hook triggers a
SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} during
gnutls/p11-kit init when reading /proc/filesystems.
Working launch method
cd /home/cachy/Applications/AppImagez
# One-time extract (already done)
./OpenHuman_0.61.2_amd64.AppImage --appimage-extract
# Run the real binary (147M) with bundled libs on LD_LIBRARY_PATH
LD_LIBRARY_PATH=./squashfs-root/shared/lib:./squashfs-root/lib \
WAYLAND_DISPLAY=$WAYLAND_DISPLAY DISPLAY=$DISPLAY \
./squashfs-root/shared/bin/OpenHuman
- Real binary:
squashfs-root/shared/bin/OpenHuman(147M, CEF app) - Stub binary:
squashfs-root/bin/OpenHuman(228K, sharun loader — broken) - Window: appears as
OpenHumanin Hyprland (hyprctl clients) - Logs: CEF subprocesses warn about
libGLESv2.so: cannot open shared object file— non-fatal, app forces ANGLE/SwiftShader software GL.