Basically, i need to unset DISPLAY variable in screen if I run multiple commands like:
screen -dmS name bash -c 'kodi; unset DISPLAY; emulationstation'
I'm writing a little something that will autorun
kodi on boot after all my mountpoints, and when
kodi exits it will run emulationstation. But
emulationstation will not run if the
$DISPLAY variable is set for some reason and I need it to be in
screen because some options are apparently not available if not running inside
unset DISPLAY doesn't work for some reason. I've even tested it by running this:
screen -dmS emu bash -c "echo Display=$DISPLAY read unset DISPLAY echo Display=$DISPLAY read"
And when I reconnect to 'emu' it will always display
:0.0 even after