From a31fc4d2f35d51cdf45ff8c61fc3a07f49c665e8 Mon Sep 17 00:00:00 2001 From: Taksh Kothari Date: Sun, 26 Jul 2026 23:24:59 +0530 Subject: [PATCH] fix(desktop): remove bundled libsystemd from AppImage (#2353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - AppImage bundles an older `libsystemd.so.0` that shadows the system copy after `libmount` is already removed - on systemd ≥ 251 (Arch, Fedora 41+, etc.) launch fails with `LIBSYSTEMD_251` not found - add `libsystemd.so*` to the existing removal list in `fix-appimage.sh` Closes #2335 ## Test plan - [ ] rebuild / repack an AppImage with the updated script - [ ] launch on a distro with systemd ≥ 251 without `LD_PRELOAD` workaround Made with [Cursor](https://cursor.com) Signed-off-by: Taksh --- desktop/scripts/fix-appimage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/scripts/fix-appimage.sh b/desktop/scripts/fix-appimage.sh index c51b85723a..3cd6411996 100755 --- a/desktop/scripts/fix-appimage.sh +++ b/desktop/scripts/fix-appimage.sh @@ -91,7 +91,7 @@ if ! compgen -G "$LIBDIR/libwayland-client.so*" > /dev/null; then exit 1 fi -echo "==> Removing infra libs that conflict with system Mesa / GLib / GStreamer" +echo "==> Removing infra libs that conflict with system Mesa / GLib / GStreamer / systemd" rm -f \ "$LIBDIR"/libwayland-client.so* \ "$LIBDIR"/libwayland-cursor.so* \ @@ -104,6 +104,7 @@ rm -f \ "$LIBDIR"/libmount.so* \ "$LIBDIR"/libblkid.so* \ "$LIBDIR"/libselinux.so* \ + "$LIBDIR"/libsystemd.so* \ "$LIBDIR"/libpcre2-8.so* \ "$LIBDIR"/libgst*.so* \ "$LIBDIR"/libzstd.so* \