This commit is contained in:
2025-10-25 21:42:31 +02:00
parent cab79db6e9
commit 0b30c493fd

View File

@@ -683,6 +683,7 @@ def on_message(client, userdata, msg):
writeLog(myCmd) writeLog(myCmd)
output = subprocess.Popen(myCmd, shell=True) output = subprocess.Popen(myCmd, shell=True)
writeLog(output) writeLog(output)
if myObj["cmd"] == "display": if myObj["cmd"] == "display":
if curos == "Windows": if curos == "Windows":
myCmd =f"powershell -w h -command \" Import-Module DisplayConfig ; Import-Clixml $home\\monitors\\{myObj['target']}.xml | Use-DisplayConfig -UpdateAdapterIds \"" myCmd =f"powershell -w h -command \" Import-Module DisplayConfig ; Import-Clixml $home\\monitors\\{myObj['target']}.xml | Use-DisplayConfig -UpdateAdapterIds \""