Open MrStanDu33 opened 1 year ago
Tested on Windows 10 WSL2
Thank you for your contribution!
This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.
HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
Read the "Running Updated Original Neofetch" section for more info!
Description
This PR fixes the wrong windows version displayed when host uses Windows 11.
Thanks to @Kwaay for issuing this bug to me and helping me fixing it.
Reason
This bug was caused by neofetch using the command
to get the OS version. But this prompt returns
even if I am using Windows 11. (my build version is
25330
, so it is fine).You can see a comparison here :![image](https://user-images.githubusercontent.com/22714562/229350869-afefbd02-547d-41bc-a814-e14481d1c6a6.png)
But if we use the command
to get the OS version, we get
So using this we lose the build number, but we get the correct OS version.
Before (See OS section)
distro_shorthand
valueon
tiny
*
After (See OS section)
distro_shorthand
valueon
tiny
*
Features
Issues
TODO
Unfortunatly I cannot perform tests on other WSLs versions, nor in a Windows 10 machine, but I hope someone can ! 🤞