terminal
terminal copied to clipboard
WSL profile matching fails to work if launched from start menu
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