#!/bin/sh
set -e

HERE="${APPDIR:-$(dirname "$(readlink -f "$0")")}"

# Without arguments, open the TUI; it will start the backend if needed.
if [ "$#" -eq 0 ]; then
    set -- tui
fi

exec "$HERE/usr/bin/translateapp" "$@"
