removedsudo, causing crash

This commit is contained in:
Justin 2023-09-26 22:30:31 +08:00 committed by GitHub
parent b1add6ae8d
commit 9e029407de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1384,11 +1384,11 @@ def screensaver():
elif "Grayscale Block" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 5")
elif "Clock 1" in data:
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver.py")
screensaver_p = pexpect.spawn("python3 clock_screensaver.py")
elif "Clock 2" in data:
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver2.py")
screensaver_p = pexpect.spawn("python3 clock_screensaver2.py")
elif "World Clock" in data:
screensaver_p = pexpect.spawn("sudo python3 world_clock2.py")
screensaver_p = pexpect.spawn("python3 world_clock2.py")
elif "Sleep" in data:
screensaver_p = DummyProcess()
else: #default in case user hasnt set one yet