GeneralKlipperScreen/scripts/KlipperScreen-start.sh
Alfredo Monclus 6cd1a8e12f
Add an alternative to X close #1289 (#1306)
* Changes to allow using cage-kiosk

Wayland support close #1289

* installer: many improvements

* installer: add notes about wayland status

* deps: don't pull xserver with updates
2024-04-03 14:32:32 -03:00

22 lines
471 B
Bash
Executable File

#!/bin/sh
XDG_RUNTIME_DIR=/run/user/$(id -u)
export XDG_RUNTIME_DIR
SCRIPTPATH=$(dirname $(realpath $0))
if [ -f $SCRIPTPATH/launch_KlipperScreen.sh ]
then
echo "Running $SCRIPTPATH/launch_KlipperScreen.sh"
$SCRIPTPATH/launch_KlipperScreen.sh
exit $?
fi
if [[ "$BACKEND" =~ ^[wW]$ ]]; then
echo "Running KlipperScreen on Cage"
/usr/bin/cage -ds $KS_XCLIENT
else
echo "Running KlipperScreen on X in display :0 by default"
/usr/bin/xinit $KS_XCLIENT
fi