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

    Start Kodi with emulationstation link

    Scheduled Pinned Locked Moved Help and Support
    14 Posts 8 Posters 18.3k 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.
    • H
      Hellcube
      last edited by Hellcube

      I have set kodi to launch first (autostart emulationstation off in retropie_setup) then i switch to emulationstation when i wish to play some games.
      I have added menu in kodi that launches ES and kills KODI.

      I did this with this command in skin shortcut:
      RunScript(special://home/pi/arcade.py)

      arcade.py

      import os
      import os.path
      import sys
      import xbmc, xbmcgui
      import subprocess
      import xbmcaddon
      import commands

      subprocess.Popen(["/home/pi/emulationstation.sh"], shell=True, stdout=subprocess.PIPE)
      xbmc.executebuiltin('XBMC.Quit');
      os.system("sudo killall -9 kodi.bin");

      emulationstation.sh
      #!/bin/bash
      sudo openvt -c 7 -s -f clear
      sudo openvt -w -c 7 -f "$(emulationstation)" &
      sleep 6
      sudo killall -9 kodi.bin
      while [ true ]; do

      This will make kodi autostart at boot.
      sudo nano .bashrc

      add this to last line

      if [ "$(pidof kodi.bin)" ]
      then
      echo "KODI already started"
      else
      kodi > /dev/null 2>&1
      fi

      1 Reply Last reply Reply Quote 1
      • S
        ShootHere
        last edited by

        I was pondering this exact same setup yesterday!

        Once Kodi is up and running again I will steal this ;)

        1 Reply Last reply Reply Quote 0
        • H
          Hellcube
          last edited by

          When i upgraded to Kodi 16.1 every thing stoped working. Kodi frezzes on exit :/
          I hope i can work it out.

          RascasR 1 Reply Last reply Reply Quote 0
          • J
            jmebd
            last edited by

            I'd like to have it (Kodi tab) back in the side scrolling menubar on emulationstation like it was once in the past. Read somewhere that it freezes and was put into the ports menu or something like that but can't remember exactly what was the cause of the move. Anyone know if it can be put back inline again with the new 16.1?

            1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators
              last edited by

              It can't be. The code to do that was bugged and had to be removed as it broke the scraper, and changing themes.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 0
              • RascasR
                Rascas
                last edited by Rascas

                If you want, I can upload to github my forked ES version from PiPplware, which is the same as RetroPie's, the only diference being that, on start, if there isn't any user interaction for 10 seconds, Kodi autostarts automatically. Than if you exit Kodi, it returns back to ES like it normally does, if launched from the ports menu. It is only a little change to the ES code.

                1 Reply Last reply Reply Quote 0
                • RascasR
                  Rascas @Hellcube
                  last edited by

                  @Hellcube Check this: https://retropie.org.uk/forum/topic/314/can-t-get-kodi-to-run-with-retropie-3-7/16

                  1 Reply Last reply Reply Quote 1
                  • H
                    Hellcube
                    last edited by

                    All works fine again. Adding kodi to bachrc worked. I have some small problems with resolution but it's not a big deal.

                    1 Reply Last reply Reply Quote 0
                    • H
                      Hellcube
                      last edited by

                      I just wish to share how it's working on my end. It's not fast (RPI 1) but it works like it supose to.

                      1 Reply Last reply Reply Quote 0
                      • F
                        Farfenkugell
                        last edited by Farfenkugell

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • F
                          Farfenkugell
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • F
                            Farfenkugell
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • W
                              wsamh
                              last edited by

                              I did what you said and I'm getting errors regarding import xbmc, xbmcgui, and xbmcaddons. It is saying that the modules are not there. Is anyone having that issue?

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

                                said in Start Kodi with emulationstation link:

                                while [ true ]; do

                                What's the purpose of the "while [ true ]; do" line in emulationstation.sh? Won't this lock up system resources? (Isn't this basically an endless loop?)

                                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.