aboutsummaryrefslogtreecommitdiff
path: root/modules/computer
AgeCommit message (Collapse)Author
2019-06-02computer/modules.c: add intree and retpoline fieldsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-02computer/modules.c: code format cleanupBurt P
Using clang-format options: BasedOnStyle: LLVM IndentWidth: 4 ColumnLimit: 100 TabWidth: 8 UseTab: Never AlignEscapedNewlines: Left AlwaysBreakAfterReturnType: None AllowShortBlocksOnASingleLine: true AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: false AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true 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-09-23computer/languages: fix crash when no other locales installedBurt P
Fix a crash when `locale -va` returns empty. Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-15computer/languages.c: requested changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-15languages.c: popen() -> g_spawn_command_line_sync(), capture stderrBurt P
I don't know if this would ever leak. Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-16Parse /usr/lib/os-release while detecting distributionLeandro Pereira
2018-04-24computer/display: use x_util for display informationBurt P
This commit fixes: * #200 now using xrandr to get screen info instead of gdk, so it works from the cli * #27 opengl core and compatibility versions are both listed * #230 (by removing extension list) Signed-off-by: Burt P <pburt0@gmail.com>
2017-11-02Computer/Display: Add X Display NameBurt P
A field exists in struct _DisplayInfo, but it wasn't being filled or shown. Perhaps fix: https://github.com/lpereira/hardinfo/issues/181 Signed-off-by: Burt P <pburt0@gmail.com>
2017-10-29Fixed possible memory leak (#201)Roman Kalashnikov
Warnings, found using PVS-Studio: hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible. hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
2017-08-25boots.c: capture stderr to prevent a leakBurt P
The only error would be inability to access /var/log/wtmp. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Make OpenGL Renderer Unknown translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making locale information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string, and the values cleaned of ampersands.
2017-08-14More "Making module information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string, and the Dependencies header translatable as well. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Making locale information translatableTotalCaesar659
2017-08-14Making module information translatableTotalCaesar659
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-30boots.c, environment.c: cleanupBurt P
* mixed tab/space indent -> all space * break translatable labels out of format strings Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30alsa.c: cleanupBurt P
* mixed tab/space indent -> all space * break translatable labels out of format strings 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-24Check for NULL before g_strstrip() to assertion failure warningsBurt P
GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed Signed-off-by: Burt P <pburt0@gmail.com>
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-19uptime: fix seg fault if uptime < 1 hourBurt P
Initialize full_fmt to NULL so free() won't crash if it wasn't used. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19filesystem: make strings translatableBurt P
Plus a couple other minor tweaks. 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-19Use const for gettext stringsBurt P
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-12Use ngettext to make uptime translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12User Info and Development header strings made translatableBurt P
Finishes https://github.com/lpereira/hardinfo/issues/38 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Fix Computer -> Summary -> RAM for non-EnglishBurt 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-12-29Make load average work with locales that uses ',' for decimal separatorLeandro Pereira
2016-07-30Handle lsmod not being foundLeandro Pereira