Proposal: Evolution of startingDirectory #13666

Closed
opened 2026-01-31 03:48:50 +00:00 by claunia · 7 comments
Owner

Originally created by @zadjii-msft on GitHub (Apr 29, 2021).

What if we had something like:

{
    "ignoreStartingDirectories": bool,
}

as a global setting? Then we'd just never use the startingDirectory for a profile, and always use the CWD of the Terminal. That seems like a big hammer, but there might be folks who are all setting "startingDirectory": "." for all their profiles, where this would be an easier solution.

Alternatively:
What about wt --cwd C:\foo new-tab? That would make sure that the Terminal's CWD is set to C:\foo, not just the CWD of that tab.
That would work better for things like the context menu, that might want subsequent tabs to open in the same CWD, but poorly for wt -w 0 --cwd C:\foo nt

Originally created by @zadjii-msft on GitHub (Apr 29, 2021). What if we had something like: ```json { "ignoreStartingDirectories": bool, } ``` as a global setting? Then we'd just _never_ use the `startingDirectory` for a profile, and always use the CWD of the Terminal. That seems like a big hammer, but there might be folks who are all setting `"startingDirectory": "."` for all their profiles, where this would be an easier solution. Alternatively: What about `wt --cwd C:\foo new-tab`? That would make sure that the Terminal's CWD is set to `C:\foo`, not just the CWD of that tab. That would work _better_ for things like the context menu, that might want subsequent tabs to open in the same CWD, but poorly for `wt -w 0 --cwd C:\foo nt`
Author
Owner

@jerblack commented on GitHub (Jun 4, 2021):

Far more important to me would be an option where you don't interfere in the startup at all and just open my WSL terminals in ~. The fact that you havce a checkbox option in your settings UI that causes Terminal to open in /mnt/c/Windows/system32 but nothing at all to say "just stay out of the way and don't interfere with the Ubuntu default behavior" is insane to me.

@jerblack commented on GitHub (Jun 4, 2021): Far more important to me would be an option where you don't interfere in the startup at all and just open my WSL terminals in ~. The fact that you havce a checkbox option in your settings UI that causes Terminal to open in /mnt/c/Windows/system32 but nothing at all to say "just stay out of the way and don't interfere with the Ubuntu default behavior" is insane to me.
Author
Owner

@DHowett commented on GitHub (Jun 4, 2021):

just stay out of the way and don't interfere with the Ubuntu default behavior

Bad news: Opening in whatever directory you run it from is the WSL launcher's default behavior. That checkbox is, quite literally, a paraphrased version of "Do the default behavior for the thing you are launching."

@DHowett commented on GitHub (Jun 4, 2021): > just stay out of the way and don't interfere with the Ubuntu default behavior Bad news: Opening in whatever directory you run it from is the WSL launcher's default behavior. That checkbox is, quite literally, a paraphrased version of "Do the default behavior for the thing you are launching."
Author
Owner

@DHowett commented on GitHub (Jun 4, 2021):

(That checkbox is, to put it another way, "do not interfere in the startup at all.")

@DHowett commented on GitHub (Jun 4, 2021): (That checkbox is, to put it another way, "do not interfere in the startup at all.")
Author
Owner

@jerblack commented on GitHub (Jun 5, 2021):

To recap:

  • SSH or open console on most any GUI-less install, get dropped into ~ for logged in user by default.
  • Open terminal from almost any Linux desktop, get dropped into ~ for logged in user by default.
  • Open default WSL prompt Start Menu, get dropped into ~ for logged in user by default.
  • Open WSL through terminal from Start Menu, get forced into home folder for Windows user, not ~

Feedback: don't do that.
MSFT: What is this foreign and unexpected behavior you are requesting?

@jerblack commented on GitHub (Jun 5, 2021): To recap: - SSH or open console on most any GUI-less install, get dropped into ~ for logged in user by default. - Open terminal from almost any Linux desktop, get dropped into ~ for logged in user by default. - Open default WSL prompt Start Menu, get dropped into ~ for logged in user by default. - Open WSL through terminal from Start Menu, get forced into home folder for Windows user, not ~ Feedback: don't do that. MSFT: What is this foreign and unexpected behavior you are requesting?
Author
Owner

@DHowett commented on GitHub (Jun 5, 2021):

There is no need for you to be curt with us or misrepresent our position.

@DHowett commented on GitHub (Jun 5, 2021): There is no need for you to be curt with us or misrepresent our position.
Author
Owner

@zadjii-msft commented on GitHub (Dec 9, 2021):

Oh my god I must have totally forgotten about #4637, because that's the same thing. That's on me.

/dup #4637

@zadjii-msft commented on GitHub (Dec 9, 2021): Oh my god I must have totally forgotten about #4637, because that's the same thing. That's on me. /dup #4637
Author
Owner

@ghost commented on GitHub (Dec 9, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 9, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13666