gtk: Make the `-e` flag for `+new-window` work
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:
https://github.com/ghostty-org/ghostty/blob/f97518cc100599186846282457be520fda11f467/src/cli/new_window.zig#L66-L70
Note that
ghostty +new-window -halready 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 :) https://github.com/ghostty-org/ghostty/commit/824185f23ed6027901ff90c04f13237038e16862
Are there any plans to implement it at some point?