blob: bae433aee8c5bb5f61ea9070b9846f1f1009756a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
set -euo pipefail
_APPDIR="/opt/@appname@"
_RUNNAME="${_APPDIR}/@runname@"
export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}:${_APPDIR}/PyQt5:${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="${_APPDIR}/PyQt5/Qt/plugins:${QT_PLUGIN_PATH}"
export QT_QPA_PLATFORM_PLUGIN_PATH="${_APPDIR}/PyQt5/Qt/plugins:${QT_QPA_PLATFORM_PLUGIN_PATH}"
export QML_IMPORT_PATH="${_APPDIR}/PyQt5/Qt/qml:${QML_IMPORT_PATH}"
export QML2_IMPORT_PATH="${_APPDIR}/PyQt5/Qt/qml:${QML2_IMPORT_PATH}"
export QT_QPA_PLATFORM=xcb
cd "${_APPDIR}"
exec "${_RUNNAME}" "$@" || exit $?
|