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

    EmulationStation - Main Menu - Remove Exit Option

    Scheduled Pinned Locked Moved Help and Support
    es quit
    16 Posts 6 Posters 2.7k 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.
    • stoney66S
      stoney66
      last edited by

      @almulder Have you looked at kiosk mode?

      https://github.com/RetroPie/RetroPie-Setup/wiki/Child-friendly-EmulationStation

      1 Reply Last reply Reply Quote 0
      • A
        almulder
        last edited by

        I do have it in kiosk mode, but the Quit option is still there. I have read that the --no-exit option should hide it, but I have tried adding it into several different files with no luck and then I read that the --no-exit is not for the main menu but some other exit option.

        Just reading alot of contradicting info and just confused now. I was hoping to find someone who has made this work and tell me what file they changed and a layout of how it looks. (Maybe there are a few files that need to be changed to make it work, just not sure.)

        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by

          Use the Kid mode instead of Kiosk, it disables the menu altogether. That aside, the situation seems like an oversight on the case design + the shutdown script supplied by Nespi. The fan should shutdown when the OS is shut down.

          1 Reply Last reply Reply Quote 0
          • A
            almulder
            last edited by

            The fan connects to their board not the pi board (power is also through their board not the pi board (they did this to reduce the load on the board, so the micro usb power port on the pi is not used.)

            Ok so kid mode, how can I update all roms and systems to be seen in kid mode? I don't want to do them all manually, that is why I was using kiosk mode

            1 Reply Last reply Reply Quote 0
            • W
              willmurray461
              last edited by

              I think that all you have to do is edit the autostart.sh file by typing

              sudo nano /opt/retropie/configs/all/autostart.sh

              then just replace the text "emulation station #auto" with

              /opt/retropie/supplementary/emulationstation/emulationstation.sh --no-exit

              chicueloC mituM 2 Replies Last reply Reply Quote 0
              • chicueloC
                chicuelo @willmurray461
                last edited by

                @willmurray461
                I tried that option both via FTP and editing manually but had no luck, maybe anyone could make it work

                1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @willmurray461
                  last edited by

                  @willmurray461 That option unfortunately just removes the Quit Emulationstation menu option from the Quit menu, but doesn't remove the rest of the entries (Reboot/Shutdown/Restart ES).

                  1 Reply Last reply Reply Quote 0
                  • A
                    almulder
                    last edited by

                    I have no issues using KidMode, but is there a way to add the kidmode option to all the games (Menus I can do manually, but to do 1000's of games would be a nightmare) Can someone write a script to maybe do this?

                    1 Reply Last reply Reply Quote 0
                    • SanoS
                      Sano
                      last edited by Sano

                      Ok, can't write a "real" script right now, but if you have a default configuration you may try something like :

                      for sys in /home/pi/.emulationstation/gamelists/*; do cp $sys/gamelist.xml $sys/gamelist.xml.bak && xmlstarlet ed -L -s "/gameList/game" -t elem -n kidgame -v true $sys/gamelist.xml; done
                      

                      This will look all systems, make a .bak copy in the same directory before modifying the gamelist.xml to add the kidgame XML element on each game.

                      Use at your own risk ( it's late here), but the theory is here :)

                      Edit : Thanks @mitu !
                      In the light of a fresh morning, this seems to be ok, I was not so tired :)

                      Additional notes :

                      • you may have to install xmlstarlet first : sudo apt install xmlstarlet
                      • you have to quit ES before running this script
                      A 1 Reply Last reply Reply Quote 0
                      • A
                        almulder
                        last edited by

                        Cool thanks I will give it a go when I get a chance.

                        1 Reply Last reply Reply Quote 0
                        • A
                          almulder @Sano
                          last edited by

                          @sano
                          Is there anyway you could have it check if the <kidgame> is already there and if so change value to true. I noticed when I scraped some new games the code was not there and I reran and now it has it listed twice. I can restore my backups, but it over written my originals so my backups have the <kidgame> on them.

                          But otherwise it worked great.

                          Thanks for your help.

                          1 Reply Last reply Reply Quote 0
                          • A
                            almulder
                            last edited by

                            Found a work around. I can run this and it will delete all the kidgame entry's and then I can rerun the other one. Thanks anyways. :)

                            for sys in /home/pi/.emulationstation/gamelists/*; do cp $sys/gamelist.xml $sys/gamelist.xml.bak && xmlstarlet ed -d "/gameList/game/kidgame" $sys/gamelist.xml.bak > $sys/gamelist.xml; done
                            
                            SanoS 1 Reply Last reply Reply Quote 1
                            • SanoS
                              Sano @almulder
                              last edited by

                              @almulder
                              I just get @home and see your posts.
                              Congratulations on finding a solution by yourself :)

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                almulder @Sano
                                last edited by almulder

                                @Sano Sorry to bug you, but maybe you can help me with one other xmlscarlet issue I have I need to rename an emlement. it is curently called thumbnail and i need to rename it to marquee. I have the code below, but no luck. It displays on screen while running that it has changed, but the files never get updated. I have even logged in as root and same issue. the files are never updated. but the output shows it was done.

                                for sys in /home/pi/addonusb/roms/*; do cp $sys/gamelist.xml $sys/gamelist.xml.bak && xmlstarlet ed -r "/gameList/game/thumbnail" -v marquee $sys/gamelist.xml; done
                                

                                I have even tried to just focus on one system.

                                xmlstarlet ed -r "/gameList/game/thumbnail" -v marquee /home/pi/addonusb/roms/snes/gamelist.xml
                                

                                Same thing, just displays on screen, file does not update.

                                1 Reply Last reply Reply Quote 0
                                • SanoS
                                  Sano
                                  last edited by

                                  You did right the first time, so I don't understand why you're struggling with this :)
                                  By default xmlstarlet just prinnt the result.

                                  There are 2 ways to modify a file :

                                  • what I did : put the -L (or --inplace) option : -L (or --inplace) - edit file inplace
                                  • what you did : redirect the output to the gamelist.xml file with a >
                                  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.