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 {
|
Process {
|
||||||
id: findCpuMaxFreqProc
|
id: findCpuMaxFreqProc
|
||||||
|
environment: ({
|
||||||
|
LANG: "C",
|
||||||
|
LC_ALL: "C"
|
||||||
|
})
|
||||||
command: ["bash", "-c", "lscpu | grep 'CPU max MHz' | awk '{print $4}'"]
|
command: ["bash", "-c", "lscpu | grep 'CPU max MHz' | awk '{print $4}'"]
|
||||||
running: true
|
running: true
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
|
|||||||
Reference in New Issue
Block a user