Skip to content

file:// links with WSL$ are not supported #10188

@heaths

Description

@heaths

Windows Terminal version (or Windows build number)

1.8.1444.0

Other Software

No response

Steps to reproduce

In PowerShell running in WSL2, write a string like following:

"`e]8;;file://wsl$/${env:WSL_DISTRO_NAME}$PWD`e\$PWD`e]8;;`e\"

I do this in my $profile and while it renders and is recognized correctly, WT shows an error dialog it's not supported.

Expected Behavior

file:// links - Windows and WSL2 alike - open in Explorer when clicked.

Actual Behavior

Error dialog that the URL is not supported:

image

This same string e.g., file://wsl$/Ubuntu-18.04/home/heaths, I can copy from the error dialog (nice allowing us to copy the error, BTW!), paste into the Run dialog, and open it in Explorer.

The string also matches your regex and is automatically detected as a link, so the error must be coming from further in the code path. file://$PWD for a plain Windows directory e.g., file://C:\Users\heaths open in Explorer when Ctrl+Click'd just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.In-PRThis issue has a related PRIssue-TaskIt's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions