Steps to reproduce:
- Set your shell to zsh
- Run ghostty using this appimage
ps --help
This produces the following output:
Usage:
ghostty [options]
Try 'ghostty --help <simple|list|output|threads|misc|all>'
or 'ghostty --help <s|l|o|t|m|a>'
for additional help text.
For more details see ps(1).
It's not your fault! But it is, apparently, your problem. Digging into this, it appears as though it's caused by appimage setting the environment variable ARGV0, which zsh looks for to set argv[0] for commands. By running the following commands, you can see this behavior:
unset ARGV0
exec zsh
ps --help
At this point, ps is now aware it is "ps" and not "ghostty".
AppImage/AppImageKit#852
My guess is that adding unset ARGV0 here should do the trick: https://github.com/psadi/ghostty-appimage/blob/main/build.sh#L94
Steps to reproduce:
ps --helpThis produces the following output:
It's not your fault! But it is, apparently, your problem. Digging into this, it appears as though it's caused by appimage setting the environment variable
ARGV0, which zsh looks for to setargv[0]for commands. By running the following commands, you can see this behavior:unset ARGV0exec zshps --helpAt this point, ps is now aware it is "ps" and not "ghostty".
AppImage/AppImageKit#852
My guess is that adding
unset ARGV0here should do the trick: https://github.com/psadi/ghostty-appimage/blob/main/build.sh#L94