Age | Commit message (Collapse) | Author |
|
See:
https://github.com/lpereira/hardinfo/pull/417#discussion_r308512774
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
udisks doesn't provide, but it can be looked up using attributes from
sysfs.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* auto_free() works in both report mode and gui mode.
* auto_free() only creates one recuring event for the whole
system rather than idle_free()'s one event per call.
* auto_free_ex() allows specifying the free function to use.
* auto_free() is thread-aware, free_auto_free_thread_final()
can be used to clean up on thread exit.
* auto_free() has some tweakability.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
This allows link clicks to be intercepted so that they might
be used by the application internally before falling back
to the system uri handler.
I've also found the default GTK label link handler to be unreliable
outside of GNOME Shell, and this will use xdg-open instead.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* more fields in struct Vendor.
* match_case -> match_rule and new match rule "exact". match_rule
remains compatible with match_case for old conf format.
* matches must be "whole word" matches so "Harmony" no longer hits
for "ARM".
* Parts outside of () are checked first, so "Foo (formerly Barly)"
matches Foo before Barly, even though Barly is longer and would
otherwise match first.
* vendor_list type (a blessed GSList*) and helper functions to manage
it.
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>
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
Maybe this could use the async version too, so multiple lspci can be
spawned concurrently?
|
|
|
|
|
|
|
|
|
|
|
|
* tag was always included even when it didn't need to be. Now only
include it when tag specified, flagged, or includes an icon.
This messed up the existing update fields system.
* The update fields system has been changed to allow updating by tag
instead of the translated label. By label still works, however.
I think it would be best to switch to using tags in the future.
* info_flatten() calls flatten_shell_param() after flatten_group()
which could cause a field name or tag to be used after it was freed.
Created special free functions to handle this after all is used.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Source:
https://elinux.org/RPi_HardwareHistory
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Whenever every module is converted to struct Info, manually-specified
tags will be useless.
|
|
|
|
* add an integer revision field
* add an extra information string field
* zlib benchmark: new revision[1] is 2, so that old results are obviously old,
and now the zlib version string will be stored in extra information.
[1] as of 6a8e19a14305079b03e45eeb0580a45104f300dd
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fix the warning:
report.c: In function ‘make_icon_css’:
shell/report.c:103:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
Failure of the sanity test at the beginning of "make_icon_css" will result in returning
of a random value instead of a gchar*.
With this patch we return a gchar* to an empty string instead.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
See: https://github.com/lpereira/hardinfo/issues/404
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
Fixes #392
|
|
|
|
|
|
|
|
Reduce code repetition by using an array of GCompareFunc function
pointers.
|
|
|
|
Fields are sorted on flatten.
Signed-off-by: Burt P <pburt0@gmail.com>
|