summarylogtreecommitdiffstats
path: root/game-box.sh
blob: cc7cac457e287c2c02bad556cb58ff1836b20bfc (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -e
_APPDIR="/opt/@appname@"
_RUNNAME="${_APPDIR}/@runname@"
export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/lib:${LD_LIBRARY_PATH}"
export QT_HOME="${_APPDIR}:${QT_HOME}"
export QT_PLUGIN_PATH="${_APPDIR}/plugins:${QT_PLUGIN_PATH}"
cd "${_APPDIR}"
exec "${_RUNNAME}" "$@" || exit $?