You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GTK: Allow specifying working directory with +new-window #10716
Originally posted by andresilva July 24, 2025
As I understand --working-directory is ignored when starting a new window in daemon mode (ghostty +new-window). I think it would be very useful to have this feature working even for new windows. As I launch new ghostty windows through my window manager (rather than from within ghostty itself), this makes it so that daemon mode is essentially unusable, since new windows will always default to ~ (or whatever path the systemd unit was started from).
Reacted by Asuna, Maëlys Bras de fer, Christian Kugler, lin72h, ignacio-martinoli-skydropx and András Rutkai
For now we should just add this to +new-window subcommand as a temporary fix. My vision for a better IPC system would allow the action of new_window (and new_tab, new_split, etc.) to take the working directory as a direct parameter, so we won't have to build this into every IPC command in this vein.
Activity
pluiedev commentedon Feb 14, 2026
For now we should just add this to
+new-windowsubcommand as a temporary fix. My vision for a better IPC system would allow the action ofnew_window(andnew_tab,new_split, etc.) to take the working directory as a direct parameter, so we won't have to build this into every IPC command in this vein.16 remaining items
gtk: `+new-window` now respects `--working-directory` and `-e` (#10809)
gtk: `+new-window` now respects `--working-directory` and `-e`
gtk: `+new-window` now respects `--working-directory` and `-e`
Merge upstream-main into main (#34)