From 09fcfa98942c2c5c5989fe4398cd9a32d558015f Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sun, 25 Jul 2021 14:19:39 +0200 Subject: [PATCH] let sxmo_rtcwake.sh set $DISPLAY if unset so the burden isn't on the user Signed-off-by: Stacy Harper --- scripts/core/sxmo_rtcwake.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/core/sxmo_rtcwake.sh b/scripts/core/sxmo_rtcwake.sh index aaedd80..4a62e8e 100644 --- a/scripts/core/sxmo_rtcwake.sh +++ b/scripts/core/sxmo_rtcwake.sh @@ -49,6 +49,10 @@ if [ "$1" = "--strict" ]; then fi fi +if [ -z "$DISPLAY" ]; then + export DISPLAY=":0" +fi + trap 'finish' TERM INT EXIT blink &