Start Kodi with emulationstation link
-
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)import os
import os.path
import sys
import xbmc, xbmcgui
import subprocess
import xbmcaddon
import commandssubprocess.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 ]; doThis will make kodi autostart at boot.
sudo nano .bashrcadd this to last line
if [ "$(pidof kodi.bin)" ]
then
echo "KODI already started"
else
kodi > /dev/null 2>&1
fi -
I was pondering this exact same setup yesterday!
Once Kodi is up and running again I will steal this ;)
-
When i upgraded to Kodi 16.1 every thing stoped working. Kodi frezzes on exit :/
I hope i can work it out. -
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?
-
It can't be. The code to do that was bugged and had to be removed as it broke the scraper, and changing themes.
-
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.
-
-
All works fine again. Adding kodi to bachrc worked. I have some small problems with resolution but it's not a big deal.
-
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.
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
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?
-
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?)
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.