forked from Shinonome/dots-hyprland
Fix CPU frequency detection for non-English locales (#2629)
* fix: ensure lscpu is using en_US locale for LANG * fix: use environment in Process
This commit is contained in:
@@ -102,6 +102,10 @@ Singleton {
|
||||
|
||||
Process {
|
||||
id: findCpuMaxFreqProc
|
||||
environment: ({
|
||||
LANG: "C",
|
||||
LC_ALL: "C"
|
||||
})
|
||||
command: ["bash", "-c", "lscpu | grep 'CPU max MHz' | awk '{print $4}'"]
|
||||
running: true
|
||||
stdout: StdioCollector {
|
||||
|
||||
Reference in New Issue
Block a user