I have a shortcut on my taskbar that opens a WSLTTY terminal. When I click on it, it flickers open and immediately closes. I suspect there is an error message being printed but it closes too fast for me to read. How can I temporarily prevent a WSL WSLTTY terminal from automatically closing?
When I open an Ubuntu terminal (the one that the Ubuntu distro installs), there is no issue, but I don't want to use that terminal.
This question is similar to How can I open WSL terminal with a command without it automatically closing? Here are the differences:
- The original post was asking about WSL1, not 2.
- The original post was not using WSLTTY.
- The original post was asking how to open the terminal from the command line; whereas I'm clicking a taskbar shortcut.
Notes:
- This link gives an in-depth explanation of how I setup my WSLTTY terminal.
- I'm asking this question so I can answer it.
- I'm using Windows 10.