The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 22:15 UTC
fix(packaging): AUR launchers export APPDIR so terminals drop the AppImage env (#32808)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Capri committed
Nov 12, 2026 at 00:07 UTC
fdaf883293622244e234882d7009155fbdeaf988
2 files changed
+6
-2
packaging/aur/t3code-bin/PKGBUILD
+3
-1
@@ -73,7 +73,9 @@ package() {
73
74
install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code" <<'EOF'
75
#!/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 "$@"
79
EOF
80
ln -s t3code "$pkgdir/usr/bin/t3-code-desktop"
81
packaging/aur/t3code-nightly-bin/PKGBUILD
+3
-1
@@ -74,7 +74,9 @@ package() {
74
75
install -Dm755 /dev/stdin "$pkgdir/usr/bin/t3code-nightly" <<'EOF'
76
#!/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 "$@"
80
EOF
81
ln -s t3code-nightly "$pkgdir/usr/bin/t3-code-nightly-desktop"
82