#/bin/bash sudo stop xbmc # Wait for the kill sleep 2 echo "$@" # Launch app - escaped! sudo openvt -c3 -f -sw -- "$@" sudo chvt 3 # SOMETIMES xbmc starts too fast, and on some hardware if there is still a millisecond of sound being used, XBMC starts witout sound and some emulators say there is a problem with the sound hardware. If so, remove comment: sleep 1 #Restart XBMC #sudo start xbmc