@webodan I found my own solution in this github post. All it took was adapting his SwitchToKodi script to kill Xorg after emulationstation was dead instead of having a user switch.
The whole problem was the custom config. I had time to reinstall everything and it was the custom config. So yeah there you go.
They are indeed.
@buzz All good!
With the official script I can compile fine what I
No one has replied
Run sudo apt-get update && apt-get -y dist-upgrade && apt-get install pulseaudio
@Retro666 you need to learn C++ and recode emulationstation to accomplish what you are trying to do.