ghostty-org/ghostty

gtk: Make the `-e` flag for `+new-window` work

Opened this issue · 6 comments

Discussion: #8860

NOTE THAT ghostty -e foo WORKS FINE. This issue is tracking the -e flag specifically on the +new-window subcommand, which is a totally separate machine.

This should work. I think @jcollie put a lot of the groundwork in already.

I had this configured for Arch Linux Updates Indicator (GNOME Extension), which doesn't work anymore.

ghostty -e "paru -Syu --noconfirm; echo Done - Press enter to exit; read"

Tried to switch to:

ghostty +new-window -e "paru -Syu --noconfirm; echo Done - Press enter to exit; read"

but without success. The error for both is:

Requested executable not found. Please verify the command is on the PATH and try again.

BR
pandale

@pandalec unrelated, open a new discussion

Note that ghostty +new-window -h already claims this works:

/// If the `-e` flag is included on the command line, any arguments that follow
/// will be sent to the running Ghostty instance and used as the command to run
/// in the new window rather than the default. If `-e` is not specified, Ghostty
/// will use the default command (either specified with `command` in your config
/// or your default shell as configured on your system).

Note that ghostty +new-window -h already claims this works:

It claims that it works. It kinda does, in that the arguments are sent to the Ghostty instance, but nothing is done with them other than emit some debug logs.

As clearly stated by the commit :) 824185f

Are there any plans to implement it at some point?