As of latest preview version (1.13.10336.0), homedir alias (~) no longer recognized. #16619

Closed
opened 2026-01-31 05:17:26 +00:00 by claunia · 8 comments
Owner

Originally created by @akulbe on GitHub (Feb 3, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.13.10336.0

Windows build number

22000.466

Other Software

No response

Steps to reproduce

Open up Terminal Preview, drop down arrow to start a WSL distro session.

Expected Behavior

Session would open normally.

Actual Behavior

[error 2147942667 (0x8007010b) when launching `ubuntu.exe']
Could not access starting directory "~"

Originally created by @akulbe on GitHub (Feb 3, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.13.10336.0 ### Windows build number 22000.466 ### Other Software _No response_ ### Steps to reproduce Open up Terminal Preview, drop down arrow to start a WSL distro session. ### Expected Behavior Session would open normally. ### Actual Behavior [error 2147942667 (0x8007010b) when launching `ubuntu.exe'] Could not access starting directory "~"
Author
Owner

@DHowett commented on GitHub (Feb 3, 2022):

This was never supported; the starting directory was simply ignored for profiles like this.

Can you change the commandline from ubuntu.exe to wsl -d Ubuntu (or whatever the name of your Ubuntu distribution is?)

@DHowett commented on GitHub (Feb 3, 2022): This was never supported; the starting directory was simply _ignored_ for profiles like this. Can you change the commandline from `ubuntu.exe` to `wsl -d Ubuntu` (or whatever the name of your Ubuntu distribution is?)
Author
Owner

@akulbe commented on GitHub (Feb 3, 2022):

terminal_preview_bugreport

@akulbe commented on GitHub (Feb 3, 2022): ![terminal_preview_bugreport](https://user-images.githubusercontent.com/123279/152424132-13cadff8-ee60-4deb-92b2-9ef847c6488f.png)
Author
Owner

@akulbe commented on GitHub (Feb 3, 2022):

This was never supported; the starting directory was simply ignored for profiles like this.

Can you change the commandline from ubuntu.exe to wsl -d Ubuntu (or whatever the name of your Ubuntu distribution is?)

I didn't specifically set it to that, that I recall. I've only ever messed with those settings to set fonts, and to change the distro name.

Go ahead and close this in favor of the bigger fish to fry. (I saw the localization bug. Thank you for your work on this, man! 🙏🏻)

@akulbe commented on GitHub (Feb 3, 2022): > This was never supported; the starting directory was simply _ignored_ for profiles like this. > > Can you change the commandline from `ubuntu.exe` to `wsl -d Ubuntu` (or whatever the name of your Ubuntu distribution is?) I didn't specifically _set_ it to that, that I recall. I've only ever messed with those settings to set fonts, and to change the distro name. Go ahead and close this in favor of the bigger fish to fry. (I saw the localization bug. Thank you for your work on this, man! 🙏🏻)
Author
Owner

@DHowett commented on GitHub (Feb 3, 2022):

AUGH! I think I know what's up. That's not gonna be great.

We changed the base WSL profile, and Ubuntu customizes it to set a different EXE. We try to detect which EXE is being launched, because if it's WSL we want to tell it about the special ~ starting directory.

Hmm. This needs some thought...

Go ahead and close this in favor of the bigger fish to fry. (I saw the localization bug. Thank you for your work on this, man! 🙏🏻)

Aw, thanks. 😄

I'll keep this one open regardless.. it's gonna bite us, especially since this feature/misfeature is in stable.

@DHowett commented on GitHub (Feb 3, 2022): AUGH! I think I know what's up. That's not gonna be great. We changed the base WSL profile, and Ubuntu customizes it to set a different EXE. We try to detect which EXE is being launched, because if it's WSL we want to tell it about the special `~` starting directory. _Hmm._ This needs some thought... > Go ahead and close this in favor of the bigger fish to fry. (I saw the localization bug. Thank you for your work on this, man! 🙏🏻) Aw, thanks. :smile: I'll keep this one open regardless.. it's gonna bite us, especially since this feature/misfeature is in stable.
Author
Owner

@DHowett commented on GitHub (Feb 4, 2022):

@zadjii-msft should we BODGE in our own check that the starting directory is a literal ~ and .... just clear it? These distro launchers are being fragment-customized on top of their WSL profiles ...

@DHowett commented on GitHub (Feb 4, 2022): @zadjii-msft should we `BODGE` in our own check that the starting directory is a literal `~` and .... just clear it? These distro launchers are being fragment-customized on top of their WSL profiles ...
Author
Owner

@zadjii-msft commented on GitHub (Feb 7, 2022):

Okay so team discussion:

If the startingDirectory is ~, and the commandline isn't wsl.exe, then drop the user in %userprofile%. Do this logic in ConptyConnection.

@zadjii-msft commented on GitHub (Feb 7, 2022): Okay so team discussion: If the `startingDirectory` is `~`, and the commandline isn't wsl.exe, then drop the user in `%userprofile%`. Do this logic in `ConptyConnection`.
Author
Owner

@ghost commented on GitHub (Feb 11, 2022):

:tada:This issue was addressed in #12437, which has now been successfully released as Windows Terminal v1.12.10393.0.🎉

Handy links:

@ghost commented on GitHub (Feb 11, 2022): :tada:This issue was addressed in #12437, which has now been successfully released as `Windows Terminal v1.12.10393.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.12.10393.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Feb 11, 2022):

:tada:This issue was addressed in #12437, which has now been successfully released as Windows Terminal Preview v1.13.10395.0.🎉

Handy links:

@ghost commented on GitHub (Feb 11, 2022): :tada:This issue was addressed in #12437, which has now been successfully released as `Windows Terminal Preview v1.13.10395.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10395.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16619