Cannot set a starting directory using linux subenv #18292

Closed
opened 2026-01-31 06:09:30 +00:00 by claunia · 7 comments
Owner

Originally created by @NouaaTW on GitHub (Aug 23, 2022).

Windows Terminal version

1.14.1962.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

just setting a starting directory doesn't work, it doesnt do anything and i'm still in the home folder

Expected Behavior

i was just expecting it to works

Actual Behavior

it doesn't work

Originally created by @NouaaTW on GitHub (Aug 23, 2022). ### Windows Terminal version 1.14.1962.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce just setting a starting directory doesn't work, it doesnt do anything and i'm still in the home folder ### Expected Behavior i was just expecting it to works ### Actual Behavior it doesn't work
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:09:30 +00:00
Author
Owner

@NouaaTW commented on GitHub (Aug 23, 2022):

it does that with linux subenv

@NouaaTW commented on GitHub (Aug 23, 2022): it does that with linux subenv
Author
Owner

@zadjii-msft commented on GitHub (Aug 23, 2022):

What profile are you using? Could you share your settings.json file/?

(I'm betting this is the ubuntu.exe issue, where ubuntu.exe always ignores startingDirectory)

@zadjii-msft commented on GitHub (Aug 23, 2022): What profile are you using? Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)/? (I'm betting this is the `ubuntu.exe` issue, where `ubuntu.exe` always ignores `startingDirectory`)
Author
Owner

@NouaaTW commented on GitHub (Aug 23, 2022):

What profile are you using? Could you share your settings.json file/?

(I'm betting this is the ubuntu.exe issue, where ubuntu.exe always ignores startingDirectory)

here is the settings.json
https://pastebin.com/i9TfU88R

and yeah, it does that with the ubuntu.exe

@NouaaTW commented on GitHub (Aug 23, 2022): > What profile are you using? Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)/? > > (I'm betting this is the `ubuntu.exe` issue, where `ubuntu.exe` always ignores `startingDirectory`) here is the settings.json https://pastebin.com/i9TfU88R and yeah, it does that with the ubuntu.exe
Author
Owner

@NouaaTW commented on GitHub (Aug 24, 2022):

i can access to my desktop using cd /mnt/c/Users/nouaa/Desktop, but when i wan't to put in the startingdirectory it says that the path is incorrect

@NouaaTW commented on GitHub (Aug 24, 2022): i can access to my desktop using cd /mnt/c/Users/nouaa/Desktop, but when i wan't to put in the startingdirectory it says that the path is incorrect
Author
Owner

@NouaaTW commented on GitHub (Aug 24, 2022):

i fixed it by editing the .bashrc file in home/user/ so it works know, but still ugly fix

@NouaaTW commented on GitHub (Aug 24, 2022): i fixed it by editing the .bashrc file in home/user/ so it works know, but still ugly fix
Author
Owner

@zadjii-msft commented on GitHub (Aug 24, 2022):

Yep, okay, this is #12961. Change the commandline of that profile to wsl -d Ubuntu-22.04 (or whatever wsl -l lists as the name of that distro). ubuntu.exe has a bug in it currently.

I'd take out the changes to .bashrc too, cause like you said, it's pretty ugly 😝

/dup #12961

@zadjii-msft commented on GitHub (Aug 24, 2022): Yep, okay, this is #12961. Change the `commandline` of that profile to `wsl -d Ubuntu-22.04` (or whatever `wsl -l` lists as the name of that distro). `ubuntu.exe` has a bug in it currently. I'd take out the changes to `.bashrc` too, cause like you said, it's pretty ugly 😝 /dup #12961
Author
Owner

@ghost commented on GitHub (Aug 24, 2022):

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 (Aug 24, 2022): 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#18292