Skip to content

WSL profile matching fails to work if launched from start menu #12582

@lhecker

Description

@lhecker

Windows Terminal version

1.14.552.0

Windows build number

10.0.22559.0

Steps to reproduce

  • Have a wsl.exe profile without any further arguments in the command line
    This will ensure it functions as sort of a "fallback" profile for any other WSL launches.
  • Launch wsl.exe from start menu.

Expected Behavior

My WSL profile gets matched.

Actual Behavior

WSL profile doesn't get matched.

Cause

The start menu entry was changed to be a direct link to the WSL app package and is this for instance:

C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemforLinux_0.51.3.0_x64__8wekyb3d8bbwe\wsl.exe

Addenda

Probably the same thing for distro-shipped executables, like ubuntu.exe, if that's at all possible. It might not be - we can't always be sure what the exe is going to be, or if the exe shipped by a distro actually is the launcher, or something else

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DefAppArea-SettingsIssues related to settings and customizability, for console or terminalIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions