diff --git a/emulationstation.sh b/emulationstation.sh index cc48aed67..227078f06 100755 --- a/emulationstation.sh +++ b/emulationstation.sh @@ -1,8 +1,9 @@ #!/bin/sh +esdir="$(dirname $0)" while true; do rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown - ./emulationstation "$@" + "$esdir/emulationstation" "$@" [ -f /tmp/es-restart ] && continue if [ -f /tmp/es-sysrestart ]; then rm -f /tmp/es-sysrestart