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