1#!/bin/sh 2# wrapper for proper WM_CLASS name in SDL apps (needed for icon in taskbar) 3#BASEDIR=`dirname $0` 4BASENAME=`basename $0` 5export SDL_VIDEO_X11_WMCLASS=${BASENAME} 6export SCUMMVM_MAEMO_DEVICE=$(awk '/^product/ { print $2;}' /proc/component_version) 7# no exec, we are really not a d-bus service 8# we need to run scummvm with diferent pid so hildon-desktop will kill the wrapper, not scummvm 9[ -x ${0}.bin ] && ${0}.bin "$@" 10# optified binary 11[ -x /opt/scummvm/bin/scummvm ] && /opt/scummvm/bin/scummvm "$@" 12