HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
291 stars 37 forks source link

[BUG]: In a WSL environment, Ubuntu is reported as Windows #118

Closed x0341 closed 2 years ago

x0341 commented 2 years ago

Describe the bug In a WSL environment, Ubuntu (or kali for example) is reported as Windows OS.

Expected behavior same as neofetch or screenfetch reporting

Screenshots image

image

Environment

Additional context

HorlogeSkynet commented 2 years ago

Hey @x0341, from an Archey point of view, I sincerely don't know whether it's a bug or a feature. Since #16, WSL detection is performed using a "mark" on the kernel release string and precedes everything else.

I'll refer to @Si13n7 on this 😇

HorlogeSkynet commented 2 years ago

So I agree with you, WSL here acts as a "virtualization method", not the distribution we want to show the logo of.

Unless @Si13n7 is strongly opposed to this, I'll drop this behavior and move kernel release string matching as a trivial WSL detection case under the Model entry, for the v4.14.0.0 :pray:

HorlogeSkynet commented 2 years ago

Released today as v4.14.0.0 :pray: