let sxmo_rtcwake.sh set $DISPLAY if unset so the burden isn't on the user

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Maarten van Gompel 2021-07-25 14:19:39 +02:00 committed by Stacy Harper
parent edc48a01d2
commit 09fcfa9894
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65

View file

@ -49,6 +49,10 @@ if [ "$1" = "--strict" ]; then
fi
fi
if [ -z "$DISPLAY" ]; then
export DISPLAY=":0"
fi
trap 'finish' TERM INT EXIT
blink &