#!/usr/bin/env bash
set -euo pipefail
appdir="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"
# Keep the working directory independent of how the user opened the download.
# The bundled encoder is resolved by the client relative to its own executable.
export CHROME_DESKTOP=lv.lio.contest-client.desktop
export DOTNET_ROOT="$appdir/usr/lib/lio-contest"
exec "$appdir/usr/lib/lio-contest/LIOContest" "$@"
