blob: d828f082a6de9a5a7fa4f6db8aea37785d0857df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
set -o pipefail
_APPDIR="/usr/lib/@appname@"
_RUNNAME="${_APPDIR}/bin/@runname@"
case "${XDG_CURRENT_DESKTOP}" in
*GNOME*|*gnome*|*XFCE*)
export QT_QPA_PLATFORMTHEME=gtk3
;;
esac
export PATH="${_APPDIR}/bin+:${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}"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@" || exit $?
|