summarylogtreecommitdiffstats
path: root/windterm.sh
blob: 7bd14d1529bb66dedbc0f1c865d121308a3cbf8e (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}/lib:${LD_LIBRARY_PATH}"
export XDG_RUNTIME_DIR="${_APPDIR}/lib:${XDG_RUNTIME_DIR}"
export QT_PLUGIN_PATH="${_APPDIR}/lib:${QT_PLUGIN_PATH}"
export RUNLEVEL=3
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?