ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

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

Open mitchellh opened this issue 3 months ago • 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.

mitchellh avatar Sep 23 '25 13:09 mitchellh

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 avatar Sep 23 '25 16:09 pandalec

@pandalec unrelated, open a new discussion

mitchellh avatar Sep 23 '25 16:09 mitchellh

Note that ghostty +new-window -h already claims this works: https://github.com/ghostty-org/ghostty/blob/f97518cc100599186846282457be520fda11f467/src/cli/new_window.zig#L66-L70

Syphdias avatar Sep 23 '25 19:09 Syphdias

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.

jcollie avatar Sep 23 '25 19:09 jcollie

As clearly stated by the commit :) https://github.com/ghostty-org/ghostty/commit/824185f23ed6027901ff90c04f13237038e16862

Syphdias avatar Sep 23 '25 20:09 Syphdias

Are there any plans to implement it at some point?

guemidiborhane avatar Oct 29 '25 07:10 guemidiborhane