summarylogtreecommitdiffstats
path: root/otd
diff options
context:
space:
mode:
Diffstat (limited to 'otd')
-rwxr-xr-xotd13
1 files changed, 13 insertions, 0 deletions
diff --git a/otd b/otd
new file mode 100755
index 000000000000..f4a779ebe6ba
--- /dev/null
+++ b/otd
@@ -0,0 +1,13 @@
+#!/bin/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 -c ./Configurations
+else
+ dotnet ./OpenTabletDriver.Console.dll "$@"
+fi