network: fix for non english locales

Also fix bluetooth
This commit is contained in:
2 * r + 2 * t 2025-06-22 12:46:03 +10:00
parent bca98e5357
commit b13b6de9d8
2 changed files with 12 additions and 0 deletions

View file

@ -27,6 +27,10 @@ Singleton {
running: true
command: ["bluetoothctl", "show"]
environment: ({
LANG: "C.UTF-8",
LC_ALL: "C.UTF-8"
})
stdout: StdioCollector {
onStreamFinished: {
root.powered = text.includes("Powered: yes");
@ -46,6 +50,10 @@ Singleton {
echo
end
end`]
environment: ({
LANG: "C.UTF-8",
LC_ALL: "C.UTF-8"
})
stdout: StdioCollector {
onStreamFinished: {
const devices = text.trim().split("\n\n").map(d => ({

View file

@ -24,6 +24,10 @@ Singleton {
id: getNetworks
running: true
command: ["nmcli", "-g", "ACTIVE,SIGNAL,FREQ,SSID,BSSID", "d", "w"]
environment: ({
LANG: "C.UTF-8",
LC_ALL: "C.UTF-8"
})
stdout: StdioCollector {
onStreamFinished: {
const PLACEHOLDER = "STRINGWHICHHOPEFULLYWONTBEUSED";