xonsh/news/fix_wsl_detection.rst
JackofSpades707 a4ca034b9c
Address ON_WSL() bug #4310 (#4311)
* Address ON_WSL() bug #4310

Solution for #4310
`return "microsoft" in platform.release().lower() # might be a better solution?`
`return "wsl" in platform.release().lower() # might be a better solution?`

* Addressed #4310 - Added output for ON_WSL

For some reason this wasn't included in the output when running `xonfig`
Perhaps this was on purpose, but wsl is pretty popular and cygwin is detected so I figure I'd address that

* only display "on wsl" field if we detect linux

* Corrected import

* added news entry

* minor clarification in news entry

* Update news/fix_wsl_detection.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* Update news/fix_wsl_detection.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* This should pass CI tests

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-06-08 13:12:56 -04:00

24 lines
281 B
ReStructuredText

**Added:**
* ``on wsl`` field when running xonfig (when linux is detected)
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* wsl detection works on archlinux wsl2 now (and hopefully everywhere)
**Security:**
* <news item>