From f30dc838484a4f217d6a314fdbf73b6cc8202412 Mon Sep 17 00:00:00 2001 From: Damian Silbergleith Cunniff Date: Sun, 10 May 2020 23:47:11 -0700 Subject: [PATCH] use a wildcard for the killall --- SafeShutdown_gpi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeShutdown_gpi.py b/SafeShutdown_gpi.py index 947db7f..c099489 100644 --- a/SafeShutdown_gpi.py +++ b/SafeShutdown_gpi.py @@ -11,7 +11,7 @@ #functions that handle button events def when_pressed(): - os.system("sudo killall emulationstation && sleep 5s && sudo reboot") + os.system("sudo killall -r emulationstatio* && sleep 5s && sudo reboot") btn = Button(powerPin, hold_time=hold) btn.when_pressed = when_pressed