summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/Bluetooth.qml8
-rw-r--r--services/Network.qml4
2 files changed, 12 insertions, 0 deletions
diff --git a/services/Bluetooth.qml b/services/Bluetooth.qml
index f5e9de1..224054d 100644
--- a/services/Bluetooth.qml
+++ b/services/Bluetooth.qml
@@ -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 => ({
diff --git a/services/Network.qml b/services/Network.qml
index 6a7f50e..1106136 100644
--- a/services/Network.qml
+++ b/services/Network.qml
@@ -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";