KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.83k stars 453 forks source link

Detect correctly Gentoo version #363

Open DmitryHetman opened 8 years ago

DmitryHetman commented 8 years ago

Gentoo have nomultilib, multilib, uclibc, musl versions. Also Gentoo have stable and testing branch. Screenfetch musl show installed gcc version

darealshinji commented 8 years ago

Does lsb_release -sirc or a /etc/*-release file identify it as stable or testing branch version? As for multilib and libc, I personally don't think that's important enough to list it in sF, unless of course it's part of lsb_release's output.

DmitryHetman commented 7 years ago

I already wrote function for detecting stable/testing/experimental release, it reads /etc/portage/make.conf file and detects wich branch is used. I also wrote functions for detection musl/uclibc/glibc (libc) versions wich detect libc and wich version is used. stable/testing/experimental it's very important property of Gentoo-based OS, so I think it worth to add it to screenfetch. Standatd C library it's vital component of any OS espetially GNU/Linux, so better add this function, and show it on every distro. I decided to divide screenfetch into couple files, so it'll be easier to manage and write code, and I'll send pull-request.

DmitryHetman commented 7 years ago

dietlibc should be detected as well.

DmitryHetman commented 7 years ago

Also I wrote a function for detection intel GPU (not finished yet), function for detecting graphic environment ( Wayland, Framebuffer, X), function for checking rootfs (USED/ALL FSTYPE) wich should work on every system with df. There is also function for detecting Gentoo Profile (hardened/default), detecting GCC version and patch version. Function for detecting Sound Card also works perfetc on my machine with alsa.