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