Closed jprostko closed 1 month ago
try now
Thanks for the quick fix. I will close out this issue.
Now the output correctly shows:
CPU: AMD Ryzen 9 7940HS w/Radeon 780M Graphics at 16x5.3 GHz (x86_64)
Your fix was way more straightforward than my suggestion, and did the job nicely.
Hello,
I built hyprsysteminfo at commit 9c5f02ff682a3bbcdbe5acdda6e404cd3c013939 (version 0.1.1) on Hyprland 0.44.1.
I have my system configured with
LANG=sv_SE.UTF-8
, and so when the code in SystemInfo.cpp looks at lscpu for "odel name", it will never find a match, since my system usesModellnamn
. As a result, hyprsysteminfo states "missing depenency: lscpu" on the CPU line. Obviously I have lscpu installed, but it simply doesn't contain aModel name
line like a system set toLANG=en_US.UTF-8
would, for example.Naturally, terms like
Architecture
are different too, as it isArkitektur
on my system, for instance. TheCPU(s)
field is also different since it isCPU(er)
. TheCPU max MHz
field matches the English counterpart, except for the fact that the output has a comma instead of a period after the whole number.Perhaps it would make more sense to interrogate
/proc/cpuinfo
and entries like/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
directly since those should always have English or numerical output? That would also remove the need for one having lscpu installed, although admittedly I think pretty much everyone would have that on their system.Granted, it is more work to get at the information this way, so I understand if you just leave this as being supported only in English locales for the time being.
Below is some output to show you what I am talking about.