Skip to content

Commit eeceff4

Browse files
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/<pkg>/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 <[email protected]>
1 parent 71c2d3a commit eeceff4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎packaging/aur/t3code-bin/PKGBUILD‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ package() {
7373

7474
install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code" <<'EOF'
7575
#!/bin/sh
76-
exec /opt/t3code-bin/AppRun "$@"
76+
# AppRun computes APPDIR but doesn't export it. The server's AppImage env scrub needs it
77+
# to keep /opt/t3code-bin/usr/lib etc. out of terminal and agent shells (#28993).
78+
exec env APPDIR=/opt/t3code-bin /opt/t3code-bin/AppRun "$@"
7779
EOF
7880
ln -s t3code "$pkgdir/usr/bin/t3-code-desktop"
7981

‎packaging/aur/t3code-nightly-bin/PKGBUILD‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ package() {
7474

7575
install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code-nightly" <<'EOF'
7676
#!/bin/sh
77-
exec /opt/t3code-nightly-bin/AppRun "$@"
77+
# AppRun computes APPDIR but doesn't export it. The server's AppImage env scrub needs it
78+
# to keep /opt/t3code-nightly-bin/usr/lib etc. out of terminal and agent shells (#28993).
79+
exec env APPDIR=/opt/t3code-nightly-bin /opt/t3code-nightly-bin/AppRun "$@"
7880
EOF
7981
ln -s t3code-nightly "$pkgdir/usr/bin/t3-code-nightly-desktop"
8082

0 commit comments

Comments
 (0)