blob: 85fe03c3b78abdefb4d8424ce5bf6131cf438590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -o pipefail
_APPDIR=/usr/lib/@appname@
_RUNNAME="${_APPDIR}/Reader_Pro/@runname@"
export PATH="${_APPDIR}/Reader_Pro:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/Reader_Pro:${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="${_APPDIR}/Reader_Pro:${QT_PLUGIN_PATH}"
gBinPath=$(dirname "$0")
if [ -d "${gBinPath}/OFDPlugin" ]; then
gInstallPath="${gBinPath}"
else
gInstallPath="${_APPDIR}/Reader_Pro"
fi
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?
|