From 9e029407dea080822e1e1867f2ef2d08714e0346 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 26 Sep 2023 22:30:31 +0800 Subject: [PATCH] removedsudo, causing crash --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 467e653..e8170a7 100755 --- a/server.py +++ b/server.py @@ -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