From 7d0da9241ec163beca6760b3f9491480b8facf07 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 7 Dec 2025 22:47:09 +0100 Subject: [PATCH] build --- mqtt_srv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mqtt_srv.py b/mqtt_srv.py index cd8405d..4182b58 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -696,10 +696,10 @@ def on_message(client, userdata, msg): myCmd = "sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer sget Master" writeLog(myCmd) output = subprocess.Popen(myCmd, shell=True) - cmd = ["sudo", "XDG_RUNTIME_DIR=/run/user/1000", "-u", "jd", "amixer", "sget", "Master"] + cmd = """sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer sget Master | awk -F'[][]' '/Left:/ { print $2 }'""" result = subprocess.run( - " ".join(cmd), + cmd, shell=True, capture_output=True, text=True