mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-06 08:15:35 +00:00
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.