#!/bin/bash
set -o pipefail
_APPDIR="/usr/lib/xpipe"
_RUNNAME="${_APPDIR}/bin/xpipe"
export PATH="${_APPDIR}/bin:${_APPDIR}/lib/runtime/bin:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/lib/runtime/lib:${LD_LIBRARY_PATH}"
cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; }
exec "${_RUNNAME}" "$@"