How to quit SmulationStation and open it again from Python script
-
Hello guys!
I have built a multi arcade in a console case and I need to, with a button press (tied to a GPIO pin), quit EmulationStation and open it again.
I have a Python script already running every reboot (used crontab) but no matter how I try to reopen ES it either doesn't work or works but my Python script can no longer "detect" the GPIO presses.I know ES can only run from tty1 and I suspect that's the issue.
I tried "os.open" "subprocess" but without luck.Does anyone know how to do this properly?
PS: currently I have my script to reboot the OS but that's too time consuming as we have to pass through all of the OS post, configurations and stuff.
Thanks!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.