When launching with no parameters (all modules), modules benchmark.so and computer.so failed to be loaded due to undefined symbols (see log below) which are in devices.so. This leads to an unexpected prompt asking user to load computer.so, along with the missing of benchmark.so-related features.
I think this may be caused by an undefined order returned from g_dir_read_name(). Document (see references) says "The order of entries returned from this function is not defined", and make other modules load before devices.so.
I managed to write a patch as a workaround which may fix the problem, but I am not confident about it and not going to create a pull request about this. The patch makes function modules_load() call module_load((gchar *) "devices.so") before traversing modules directory.
Description
When launching with no parameters (all modules), modules
benchmark.so
andcomputer.so
failed to be loaded due to undefined symbols (see log below) which are indevices.so
. This leads to an unexpected prompt asking user to loadcomputer.so
, along with the missing ofbenchmark.so
-related features.In
hardinfo/utils.c
: https://github.com/lpereira/hardinfo/blob/10f9789e95b735931805b7eb684ae43ac6f29353/hardinfo/util.c#L966-L971I think this may be caused by an undefined order returned from
g_dir_read_name()
. Document (see references) says "The order of entries returned from this function is not defined", and make other modules load beforedevices.so
.I managed to write a patch as a workaround which may fix the problem, but I am not confident about it and not going to create a pull request about this. The patch makes function
modules_load()
callmodule_load((gchar *) "devices.so")
before traversing modules directory.Build with
-DHARDINFO_GTK3='ON'
References:
Log
(full: https://gist.github.com/CamberLoid/c597378249c693749f953c90caea90b2)