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

    Ability to prevent runcommand from starting with runcommand-onstart.sh ?

    Scheduled Pinned Locked Moved Help and Support
    runcommand
    4 Posts 2 Posters 329 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
      Mangaclub
      last edited by

      Hi fine folks!,
      i am looking for a way to use the runcommand-onstart.sh script to prevent a game from being loaded and returning back to EM/attract mode.
      Basicly what i want todo is password protect certain games with a py script and when the password is wrong it will go back to the menu. Would any of you know a good solution? I know the runcommand user menu scrripts can actually send a exit code and end runcommand but can the onstart or onlaunch script do that too ?

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @Mangaclub
        last edited by

        @Mangaclub maybe something like:

        python3 /path/to/password.py || pkill -f runcommand.sh
        
        M 2 Replies Last reply Reply Quote 0
        • M
          Mangaclub @sleve_mcdichael
          last edited by

          @sleve_mcdichael Ohh thanks! i will give that a try

          1 Reply Last reply Reply Quote 0
          • M
            Mangaclub @sleve_mcdichael
            last edited by Mangaclub

            @sleve_mcdichael

            i actually made a function for this like:
            def stop_runcommand():
            os.system("pkill -f runcommand.sh")

            wich works and kills runcommand and even returns you to attract mode.

            thanks!

            1 Reply Last reply Reply Quote 1
            • 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.