Skip to content

With zsh as default shell, all commands think their name is "ghostty" #20

@elerch

Description

@elerch

Steps to reproduce:

  1. Set your shell to zsh
  2. Run ghostty using this appimage
  3. 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:

  1. unset ARGV0
  2. exec zsh
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions