Starting directory only respected for first tab instance #1656

Closed
opened 2026-01-30 22:33:05 +00:00 by claunia · 4 comments
Owner

Originally created by @pgerell on GitHub (Jun 13, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.145]
Windows Terminal version: Built using d82eab44d0

Steps to reproduce

Set the following profile as default profile:

{
    "closeOnExit" : true,
    "colorScheme" : "Solarized Dark",
    "commandline" : "wsl.exe -d Ubuntu-18.04",
    "cursorColor" : "#FFFFFF",
    "cursorShape" : "underscore",
    "fontFace" : "Consolas",
    "fontSize" : 10,
    "guid" : "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
    "historySize" : 9001,
    "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
    "name" : "Ubuntu-18.04",
    "padding" : "0, 0, 0, 0",
    "snapOnInput" : true,
    "startingDirectory" : "//wsl$/Ubuntu-18.04/home/xxx",
    "useAcrylic" : false
}

Start Windows terminal
Press "+" to open a second tab.

Expected behavior

Both tabs should be started in /home/xxx

Actual behavior

First tab is started in /home/xxx
Second tab is started in /mnt/c/Users/xxx

Originally created by @pgerell on GitHub (Jun 13, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Windows build number: Microsoft Windows [Version 10.0.18362.145] Windows Terminal version: Built using https://github.com/microsoft/terminal/commit/d82eab44d076e441f0b630d9b53a19dfa884c3ab # Steps to reproduce Set the following profile as default profile: ```js { "closeOnExit" : true, "colorScheme" : "Solarized Dark", "commandline" : "wsl.exe -d Ubuntu-18.04", "cursorColor" : "#FFFFFF", "cursorShape" : "underscore", "fontFace" : "Consolas", "fontSize" : 10, "guid" : "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png", "name" : "Ubuntu-18.04", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "//wsl$/Ubuntu-18.04/home/xxx", "useAcrylic" : false } ``` Start Windows terminal Press "+" to open a second tab. <!-- A description of how to trigger this bug. --> # Expected behavior Both tabs should be started in /home/xxx <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior First tab is started in /home/xxx Second tab is started in /mnt/c/Users/xxx <!-- What's actually happening? -->
claunia added the Needs-Tag-FixResolution-No-Repro labels 2026-01-30 22:33:05 +00:00
Author
Owner

@pgerell commented on GitHub (Jun 13, 2019):

When trying to attach to the process to debug this issue I noticed that I had many stray init and fish processes running. Probably left behind from crashing terminals.
After killing these processes, the unexpected behaviour is gone.

@pgerell commented on GitHub (Jun 13, 2019): When trying to attach to the process to debug this issue I noticed that I had many stray init and fish processes running. Probably left behind from crashing terminals. After killing these processes, the unexpected behaviour is gone.
Author
Owner

@zadjii-msft commented on GitHub (Jun 13, 2019):

I can't get this to repro locally - @pgerell what's your default shell on your ubuntu instance?

@zadjii-msft commented on GitHub (Jun 13, 2019): I can't get this to repro locally - @pgerell what's your default shell on your ubuntu instance?
Author
Owner

@pgerell commented on GitHub (Jun 13, 2019):

After killing those stray processes I cannot reproduce it either. I use fish as my default shell.
I've had many crashes lately but that is a different issue.

@pgerell commented on GitHub (Jun 13, 2019): After killing those stray processes I cannot reproduce it either. I use fish as my default shell. I've had many crashes lately but that is a different issue.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 13, 2019):

#970 should help with process orphaning. For the rest of it, though, it looks like it doesn't repro?

@DHowett-MSFT commented on GitHub (Jun 13, 2019): #970 should help with process orphaning. For the rest of it, though, it looks like it doesn't repro?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1656