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
|
running: true
|
||||||
command: ["bluetoothctl", "show"]
|
command: ["bluetoothctl", "show"]
|
||||||
|
environment: ({
|
||||||
|
LANG: "C.UTF-8",
|
||||||
|
LC_ALL: "C.UTF-8"
|
||||||
|
})
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
root.powered = text.includes("Powered: yes");
|
root.powered = text.includes("Powered: yes");
|
||||||
|
|
@ -46,6 +50,10 @@ Singleton {
|
||||||
echo
|
echo
|
||||||
end
|
end
|
||||||
end`]
|
end`]
|
||||||
|
environment: ({
|
||||||
|
LANG: "C.UTF-8",
|
||||||
|
LC_ALL: "C.UTF-8"
|
||||||
|
})
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
const devices = text.trim().split("\n\n").map(d => ({
|
const devices = text.trim().split("\n\n").map(d => ({
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,10 @@ Singleton {
|
||||||
id: getNetworks
|
id: getNetworks
|
||||||
running: true
|
running: true
|
||||||
command: ["nmcli", "-g", "ACTIVE,SIGNAL,FREQ,SSID,BSSID", "d", "w"]
|
command: ["nmcli", "-g", "ACTIVE,SIGNAL,FREQ,SSID,BSSID", "d", "w"]
|
||||||
|
environment: ({
|
||||||
|
LANG: "C.UTF-8",
|
||||||
|
LC_ALL: "C.UTF-8"
|
||||||
|
})
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
const PLACEHOLDER = "STRINGWHICHHOPEFULLYWONTBEUSED";
|
const PLACEHOLDER = "STRINGWHICHHOPEFULLYWONTBEUSED";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue