RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    How to quit SmulationStation and open it again from Python script

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiopythonreboot
    1 Posts 1 Posters 702 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mvmiranda
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      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.