summarylogtreecommitdiffstats
path: root/apk-editor-studio.sh
blob: 79c333448d8ef3f6916a6e2215edeb271b687876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -o pipefail
_APPDIR="/usr/lib/@appname@"
_RUNNAME="${_APPDIR}/bin/@runname@"
export PATH="${_APPDIR}:${PATH:-}"
export LD_LIBRARY_PATH="${_APPDIR}/lib:${LD_LIBRARY_PATH:-}"
export QT_PLUGIN_PATH="${_APPDIR}/plugins:${QT_PLUGIN_PATH:-}"
export QML_IMPORT_PATH="${_APPDIR}/qml:${QML_IMPORT_PATH:-}"
export QML2_IMPORT_PATH="${_APPDIR}/qml:${QML2_IMPORT_PATH:-}"
export QT_QPA_PLATFORMTHEME="gtk2"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?