blob: 586ebddeb12b02a0aaec0b0d643e1b8a81e13f41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
set -o pipefail
_APPDIR="/usr/lib/@appname@"
_RUNNAME="${_APPDIR}/@runname@"
export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="${_APPDIR}/plugins:${QT_PLUGIN_PATH}"
export GST_PLUGIN_SYSTEM_PATH="${_APPDIR}/lib:${GST_PLUGIN_SYSTEM_PATH}"
export GST_PLUGIN_PATH="${_APPDIR}/lib:${GST_PLUGIN_PATH}"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?
|