summaryrefslogtreecommitdiff
path: root/modules/computer
AgeCommit message (Collapse)Author
2019-08-10name cleanup for x86 model strings and intel pci device stringsBurt P
x86 CPU: * Remove (R), (TM), etc * AMD: remove redundant "X2 Dual Core", "X4 Quad Core", etc * Move vendor to front if not already * Remove speed, as the actual speed is usually right next to it * Remove "CPU", "APU", "Processor" to shorten * Compress space Intel GPU: * Remove (R) * Abbreviate "Generation": "Gen" * Remove "Processor", "Controller", and "Device" to shorten * Compress space Some examples: x86 CPU: 'AMD Turion(tm) 64 Mobile Technology ML-32' ---> 'AMD Turion 64 Mobile ML-32' 'Cyrix MediaGXtm MMXtm Enhanced' ---> 'Cyrix MediaGX MMX Enhanced' 'Transmeta(tm) Crusoe(tm) Processor TM5800' ---> 'Transmeta Crusoe TM5800' 'VIA Nano X2 L4350 @ 1.6+ GHz' ---> 'VIA Nano X2 L4350' 'AMD Athlon(tm) 64 X2 Dual-Core Processor TK-53' ---> 'AMD Athlon 64 X2 TK-53' 'Embedded AMD Opteron(tm) Processor 23KS EE' ---> 'AMD Embedded Opteron 23KS EE' 'Intel(R) Atom(TM) x5-Z8300 CPU @ 1.44GHz' ---> 'Intel Atom x5-Z8300' 'Intel(R) Pentium(R) III CPU - S 1400MHz' ---> 'Intel Pentium III - S' 'Dual Core AMD Opteron(tm) Processor 165' ---> 'AMD Dual Core Opteron 165' 'Genuine Intel(R) CPU T1350 @ 1.86GHz' ---> 'Intel T1350' 'AMD Phenom(tm) 9350e Quad-Core Processor' ---> 'AMD Phenom 9350e Quad-Core' Intel GPU: 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller' ---> 'Atom/Celeron/Pentium x5-E8000/J3xxx/N3xxx Integrated Graphics' '4th Generation Core Processor Family Integrated Graphics Controller' ---> '4th Gen Core Family Integrated Graphics' 'Mobile GM965/GL960 Integrated Graphics Controller (secondary)' ---> 'Mobile GM965/GL960 Integrated Graphics (secondary)' 'Mobile 915GM/GMS/910GML Express Graphics Controller' ---> 'Mobile 915GM/GMS/910GML Express Graphics' Also: Fix/replace the appf() and SEQ() that were peppered about. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10ubuntu flavors: vanilla png -> svgBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10UbuntuFlavor -> DistroFlavor: perhaps more easily used by non-ubuntu distrosBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10Add SVG icon support in report HTML and Xubuntu icon to demonstrateBurt 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-07computer/display.c: handle unknown session typeBurt P
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-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
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>
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>