aboutsummaryrefslogtreecommitdiff
path: root/modules/computer/os.c
AgeCommit message (Collapse)Author
2024-05-24FIX GCC Warnings, added more checking to gcc flagshwspeedy
2024-04-02FIX Implicit ctype functions - missing includehwspeedy
2024-02-17FIX remove old lsb_release - not needed any morehwspeedy
2024-02-17Normalize parsing Distribution ID and Distro version codename (#8)Ondrej Čerman
* computer/os: normalize distroid when detecting os via distro-specific release files. Up to this commit the distro ID was set to distro->codename when using distro-specific files and distro->id when using os-release/lsb_release. * computer/os - added support for parsing distro version codename in os-release this format is currently used by ubuntu-based distributions * computer/os: Fix parsing codename from lsb_release
2024-02-08FIX added missing GTK3 fix from PRbigbear
2024-02-08LICENSE Changed to GPL2+ for project and source code According to approval ↵bigbear
from copyright holders - see: https://github.com/lpereira/hardinfo/issues/530 https://github.com/lpereira/hardinfo/issues/707
2021-11-07Update copyright informationL Pereira
2020-05-03Show distro code name, if presentLeandro Pereira
2019-08-10Always pulse status bar while spawning processes synchronouslyLeandro Pereira
2019-07-10UbuntuFlavor -> DistroFlavor: perhaps more easily used by non-ubuntu distrosBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10computer/os: Ubuntu flavorsBurt P
See: https://github.com/lpereira/hardinfo/issues/404 Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-04Use "debian" for Debian distrocodeLeandro Pereira
When parsing the -- now preferred -- os-release file, the distro ID is "Debian", which is lowercased.
2019-06-29Show kernel command lineLeandro Pereira
2019-06-29Remove duplicated Arch Linux entryLeandro Pereira
2019-06-29Rename Fedora id to "fedora"Leandro Pereira
2019-06-29Clean up distro-detecting codeLeandro Pereira
2019-06-18Add information about SELinux and other LSMsLeandro Pereira
2019-06-18Start Computer/SecurityBurt P
As requested in https://github.com/lpereira/hardinfo/issues/342 Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-30computer/os: fix loop in parse_os_releaseOndrej Čerman
2018-11-19Added MATE version detectionOndrej Čerman
2018-10-13Display status of ASLR in Computer->Operating SystemLeandro Pereira
2018-05-16Parse /usr/lib/os-release while detecting distributionLeandro Pereira
2017-08-04No need to check if a /etc/${distro}-release file existsLeandro Pereira
Files are going to be opened for reading anyway.
2017-08-04Plug memleak when detecting distributionLeandro Pereira
If the output of `lsb_release -d` didn't contain a "Description: " substring, it would leak.
2017-08-04computer/os: quiet warnings, add comment for translatorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-29Refactor distribution detection routineLeandro Pereira
2017-07-29Re-mark some strings for translationLeandro Pereira
2017-07-29Improve desktop environment detection when reading XDG env varsLeandro Pereira
2017-07-28Plug memory leaks after refactoring desktop detection routineLeandro Pereira
Also detect session type (Wayland, X11, etc).
2017-07-28Refactor desktop environment detection routineLeandro Pereira
Code is longer, but is more readable.
2017-07-21computer/os.c: another libc detection fixBurt P
Starting in Debian 9, ldconfig requires root, and so it can't be used to get the GLIBC version. Try `ldd --version` first. It should give the same results. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Find a value for OS->Language field, Computer summary headers translatableBurt P
Note: "Computer" summary (not Computer->Summary). Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Make bits of entropy string translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Simplify libc detection codeLeandro Pereira
2017-07-09Do not derefernce NULL pointer if '\n' is not found in ldconfig outLeandro Pereira
2017-07-09Use strchr() instead of strstr() when looking for a single charLeandro Pereira
2017-07-09Make libc strings translatableLeandro Pereira
2017-07-09Use g_spawn_command_line_sync() to detect libc versionLeandro Pereira
No need to invoke the shell using popen(), and have it redirect output from stderr to stdout in the diet libc case. This also hides possible errors during detection.
2017-07-09libc detection cosmetic fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Fix diet libc detectionBurt P
diet libc outputs usage/version to stderr. Function is also a little cleaner now. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Add diet libc to libc detectionBurt P
Demonstrate how a libc implementation without ldconfig might work. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Use ldconfig to detect C library implementation and versionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09OS: Improve C library detectionBurt P
Based on a patch from Ubuntu/Debian.
2016-07-24Show bits of entropy available to /dev/(u)randomLeandro Pereira
2015-10-25revert commit [d5afcb6851]; fix the real cause of missing RAM display (use ↵jamesbond
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
2015-10-25stability fixes & add fatdog64 recognitionjamesbond
2014-01-03Add initial translation support (patch from rodin.s)Julien Lavergne
2012-01-08Detect LXDE and Lubuntu from $XDG_CURRENT_DESKTOP and $DESKTOP_SESSION.Leandro Pereira
Based on patch by Jonathan Marsden <jmarsden@fastmail.fm>
2010-05-05Add support for Arch LinuxLeandro A. F. Pereira
2010-05-03Move files from hardinfo2 to root.Leandro A. F. Pereira