#! /usr/bin/env bash cd /usr/share/OpenTabletDriver if [ $# -eq 0 ] then if [[ ! -v DISPLAY ]] && [[ ! -v WAYLAND_DISPLAY ]] then echo "DISPLAY and/or WAYLAND_DISPLAY is not set" exit 64 fi dotnet ./OpenTabletDriver.Daemon.dll else dotnet ./OpenTabletDriver.Console.dll "$@" fi