Age | Commit message (Collapse) | Author |
|
When parsing the -- now preferred -- os-release file, the distro ID is
"Debian", which is lowercased.
|
|
|
|
|
|
|
|
|
|
As discussed in
https://github.com/lpereira/hardinfo/issues/345
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
As requested in https://github.com/lpereira/hardinfo/issues/342
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
|
|
|
|
|
|
Fix a crash when `locale -va` returns empty.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
I don't know if this would ever leak.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
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>
|
|
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>
|
|
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.
|
|
The only error would be inability to access /var/log/wtmp.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Continuation of TotalCaesar659's work, but with the labels
broken out of the c-format string, and the values cleaned of
ampersands.
|
|
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>
|
|
|
|
|
|
Files are going to be opened for reading anyway.
|
|
If the output of `lsb_release -d` didn't contain a "Description: "
substring, it would leak.
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* mixed tab/space indent -> all space
* break translatable labels out of format strings
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* mixed tab/space indent -> all space
* break translatable labels out of format strings
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|
|
Also detect session type (Wayland, X11, etc).
|
|
Code is longer, but is more readable.
|
|
GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
Initialize full_fmt to NULL so free() won't crash if it wasn't used.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Plus a couple other minor tweaks.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Note: "Computer" summary (not Computer->Summary).
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Finishes https://github.com/lpereira/hardinfo/issues/38
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|
|
|