Files
tty7/crates/tty7-core
l0ng-ai 591368d80b fix(pane): don't hand the AppImage runtime's ARGV0 to the pane (#1100) (#1111)
The AppImage runtime exports `ARGV0` (the path the image was launched by)
into tty7's environment, and every pane inherited it. zsh treats an
exported `ARGV0` as the argv[0] of each external command it runs, so in a
pane every program was told it was `tty7-….AppImage`. Volta's shims choose
the tool from argv[0], so `node`, `npm` and every global package failed
with `Could not find executable "tty7-….AppImage"`.

Turning shell integration off would not have helped. `env -u
TTY7_SHELL_INTEGRATION node` only worked because `env` execs node with a
correct argv[0], and `env -u` with any variable name works just as well.

Panes now start without `ARGV0`. The removal happens before the configured
`env` block is applied, so an explicit setting there still wins.

Reproduced on Linux (Debian arm64, zsh, Volta 2.0.2) with tty7-server
started under the environment an AppImage launch leaves behind: the shims
fail with the line removed and work with it in place.
2026-10-07 21:01:32 +08:00
..