network: fix for non english locales
Also fix bluetooth
This commit is contained in:
parent
bca98e5357
commit
b13b6de9d8
2 changed files with 12 additions and 0 deletions
|
|
@ -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 => ({
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue