Author Topic: Shell call to Attract Mode "exit emulator" function.  (Read 49 times)

JuRaSSiCBoY

  • Newbie
  • *
  • Posts: 2
    • View Profile
Shell call to Attract Mode "exit emulator" function.
« on: August 09, 2017, 09:08:25 AM »
Hello and sorry If this is not the place to make this question I don't know exactly where to write it.

I've got an small script who is called from runcommand-onend.sh. This script is in python, and finishes with a call to "attract" from the shell, to return the user to Attract Mode. Here's the call:

subprocess.call('attract', shell=True)

I don't want to send the user to the Attract Mode, what I really want is to "exit the emulator" and send the user to where he was before the call. What is the shell call to "exit the emulator" on Attract Mode?


Thank you very much in advance for your help and time.

bjose2345

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
Re: Shell call to Attract Mode "exit emulator" function.
« Reply #1 on: August 11, 2017, 12:25:11 AM »
I think you need to search is for the pid for the emulators (if you are using retropie, searh for the route opt/retropie/emulators/ ) and if one of those are running you send the kill -QUIT command to that pid