Anylinux-sharun
June 24, 2026 ยท View on GitHub
Fork of VHSgunzo/sharun. Run dynamically linked ELF binaries everywhere (musl and glibc).
This fork is used by the Anylinux-AppImages project. It is intended for AppImage deployment only.
What this fork adds
-
SHARUN_MESA_PATH: Point to an external mesa installation (withlib/andshare/subdirs). Allows switching mesa versions at runtime. -
bwrap-wrapper: When
sharunis invoked asbwrap, it interceptsbwraparguments to preserve essential paths and env variables ($APPDIR,/tmp,/proc,$APPDIR,$SHARUN_DIR,$PATH). Rewrites hardcoded command paths to their AppDir equivalents. Falls back to systembwrapif real bwrap wasn't deployed. This lets applications that sandbox themselves with bwrap (example WebKitGTK) work correctly as AppImage. -
gio-launch-desktophandler: Whensharunis hardlinked asgio-launch-desktop, it setsGIO_LAUNCHED_DESKTOP_FILE_PIDand launches the target. Required for AppImages that rely on GIO-based.desktopfile launching. -
AppRun.shsupport: If anAppRun.shexists in the sharun directory and sharun is hardlink as theAppRun, it executesAppRun.shusing anysh/bashfound inPATHor the AppDir, removes hard/bin/shdependency fromAppRun. -
Directory structure: Uses
lib/lib32directly instead ofshared/lib/shared/lib32. Fixes libraries that look for a relative../sharedirectory and can't find it. -
Additional env vars: Auto sets
LADSPA_PATH,FREI0R_PATH,MLT_REPOSITORY,MLT_PROFILES_PATH,MLT_PRESETS_PATH,GS_LIB,OPENSSL_CONF, andQT_XKB_CONFIG_ROOTand likely more in the future. -
Bun workaround: Detects Bun binaries and uses alternative execution paths so they run correctly via temp dynamic linker in
/tmp. (These break when executed with the dynamic linker directly).
What this fork removes
-
lib4bin: Has been removed. Use quick-sharun instead. -
xdg-openwrapper: Has been removed.quick-sharunuses anylinux.so which fixes the same issues that the wrapper did and better. (Works on all external binaires, not justxdg-open). -
sharun-aio: The all-in-one binary with bundledlib4bindependencies is removed. -
sharun-lite: Removed. -
wrappe integration: No
--with-wrappe. Usequick-sharun --make-static-bininstead. -
Python packing with uv: No
--with-pythonsupport for embedding python/pip packages.quick-sharunonly supports deploying the system python installation due to many bugs with uv python. -
Strace mode: No
stracefor library detection at runtime.quick-sharunusesLD_DEBUG=libsinstead (reduces overdeployment of libraries).