Open timblaktu opened 6 months ago
@timblaktu after importing the wsl machine, it should be possible to open it without restarting Terminal
and it is! Just not from the drop-down menu. Run wsl -d your_new_distro
inside the terminal w/out restarting it.
I would understand if this behavior is "as-designed" and therefore this converted to a feature request.
This is indeed currently as-designed. Finding new profiles is not super expensive, but it's definitely not cheap, so we can't do it every time that menu is opened. In the past we had considered reworking how profiles are generated: Instead of them being automatically added on startup, we'd just offer them in the settings tab. If we did that we could just refresh the list whenever the settings are opened.
@lhecker please add a command to refresh the profiles instead of triggering a reload every time I click on the dropdown menu.
Another terrible thought I just had -
what if we had like, a singular well-known filepath that we don't actually read from, but just listen to for modifications. Then, regardless of which branding / packaging you're on, if an extension source (in this case, WSL) makes changes to the list of profiles, they can touch
that file, and cause all terminals to reload their settings.
Okay so discussion notes:
Windows Terminal version
Windows Terminal Preview Version: 1.21.1272.0
Windows build number
10.0.22631.0
Other Software
Steps to reproduce
wsl.exe --import <machine-name> %USERPROFILE%\nixos-wsl-tarballs\<machine-name> <path-to-the-wsl-machine-archive.tar.gz-file>
Expected Behavior
Step 4. above should not be required. In 3, after importing the wsl machine, it should be possible to open it without restarting Terminal.
I would understand if this behavior is "as-designed" and therefore this converted to a feature request.
Actual Behavior
See #Steps To Reproduce.