Inherit working directory when terminal is launched via shell or other context #6432

Open
opened 2026-01-31 00:38:32 +00:00 by claunia · 0 comments
Owner

Originally created by @leidegre on GitHub (Feb 14, 2020).

Description of the new feature/enhancement

From the video below you can see what happens if I launch wt by typing it into the Windows Explorer address bar. This is something I've grown used to doing and it works for cmd.exe. What happens in the case of wt is that it isn't inheriting the working directory. I would very much appreciate if it did so that if it is launched from a specific context is actually has the same working directory.

In this case I expected the terminal to open in C:\Users\leidegre\Source\tessin

You can see here as well, that this isn't limited to the address bar in anyway. It's the same thing if I attempt to launch wt from the old command prompt.

In this case I expected the terminal to open in C:\

Proposed technical implementation details (optional)

Make it so wt respects working directory. So that the new shell has the same working directory as the source that launched wt had (regardless of how it is launched).

Originally created by @leidegre on GitHub (Feb 14, 2020). # Description of the new feature/enhancement From the video below you can see what happens if I launch `wt` by typing it into the Windows Explorer address bar. This is something I've grown used to doing and it works for `cmd.exe`. What happens in the case of `wt` is that it isn't inheriting the working directory. I would very much appreciate if it did so that if it is launched from a specific context is actually has the same working directory. ![](http://g.recordit.co/7I7rC0epE1.gif) In this case I expected the terminal to open in `C:\Users\leidegre\Source\tessin` You can see here as well, that this isn't limited to the address bar in anyway. It's the same thing if I attempt to launch `wt` from the old command prompt. ![](http://g.recordit.co/Vl2CLFIexb.gif) In this case I expected the terminal to open in `C:\` # Proposed technical implementation details (optional) Make it so `wt` respects working directory. So that the new shell has the same working directory as the source that launched `wt` had (regardless of how it is launched).
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 00:38:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6432