From eeceff4c402623d92082a3b3cb1aa1416984cdab Mon Sep 17 00:00:00 2001 From: SusieeTheFemboy <96988330+SusieeTheLinuxUser@users.noreply.github.com> Date: Sun, 8 Nov 2026 04:10:31 +0100 Subject: [PATCH] fix(packaging): AUR launchers export APPDIR so terminals drop the AppImage env AppRun computes APPDIR but doesn't export it, and the AUR packages run it without the AppImage runtime, so APPIMAGE isn't set either. The server's stripAppImageRuntimeEnv returns early when both are unset, so terminals keep /opt//usr/lib on LD_LIBRARY_PATH and system tools load the bundled libnotify (notify-send: undefined symbol ...). Export APPDIR in the launcher. Co-Authored-By: Claude Opus 5.5 --- packaging/aur/t3code-bin/PKGBUILD | 4 +++- packaging/aur/t3code-nightly-bin/PKGBUILD | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/aur/t3code-bin/PKGBUILD b/packaging/aur/t3code-bin/PKGBUILD index c5219666bf08b..6981358b3c6ec 100644 --- a/packaging/aur/t3code-bin/PKGBUILD +++ b/packaging/aur/t3code-bin/PKGBUILD @@ -73,7 +73,9 @@ package() { install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code" <<'EOF' #!/bin/sh -exec /opt/t3code-bin/AppRun "$@" +# AppRun computes APPDIR but doesn't export it. The server's AppImage env scrub needs it +# to keep /opt/t3code-bin/usr/lib etc. out of terminal and agent shells (#28993). +exec env APPDIR=/opt/t3code-bin /opt/t3code-bin/AppRun "$@" EOF ln -s t3code "$pkgdir/usr/bin/t3-code-desktop" diff --git a/packaging/aur/t3code-nightly-bin/PKGBUILD b/packaging/aur/t3code-nightly-bin/PKGBUILD index f3b61c7d5223e..13b064fbb6388 100644 --- a/packaging/aur/t3code-nightly-bin/PKGBUILD +++ b/packaging/aur/t3code-nightly-bin/PKGBUILD @@ -74,7 +74,9 @@ package() { install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code-nightly" <<'EOF' #!/bin/sh -exec /opt/t3code-nightly-bin/AppRun "$@" +# AppRun computes APPDIR but doesn't export it. The server's AppImage env scrub needs it +# to keep /opt/t3code-nightly-bin/usr/lib etc. out of terminal and agent shells (#28993). +exec env APPDIR=/opt/t3code-nightly-bin /opt/t3code-nightly-bin/AppRun "$@" EOF ln -s t3code-nightly "$pkgdir/usr/bin/t3-code-nightly-desktop"