archey3 icon indicating copy to clipboard operation
archey3 copied to clipboard

Should get the OS name from os-release(5)

Open LukeShu opened this issue 8 years ago • 0 comments

Currently the distro module gets the OS name by guessing Arch Linux if /etc/pacman.conf exists, and falling back to uname -o otherwise.

I propose that (per man 5 os-release) it check whichever of /etc/os-release and /usr/lib/os-release, is found first; and use PRETTY_NAME, fall back to NAME, fall back to ID, then finally fall back to uname -o.

Relatedly, having the default color be os-release:ANSI_COLOR wouldn't be a bad idea either.

LukeShu avatar Oct 10 '16 14:10 LukeShu