From 88008e5aad43a824596f206bcbe0920ecf1c8e6a Mon Sep 17 00:00:00 2001 From: Gaston Gonzalez Date: Thu, 21 Nov 2024 06:35:15 -0700 Subject: [PATCH] JS8Call - Add desktop notification regarding time sync if a supported GPS device is not present --- overlay/opt/emcomm-tools/bin/et-js8call | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/overlay/opt/emcomm-tools/bin/et-js8call b/overlay/opt/emcomm-tools/bin/et-js8call index d3eae5e..9f5783b 100755 --- a/overlay/opt/emcomm-tools/bin/et-js8call +++ b/overlay/opt/emcomm-tools/bin/et-js8call @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 24 October 2024 -# Updated : 12 November 2024 +# Updated : 20 November 2024 # Purpose : Wrapper script for starting JS8Call with PnP support # # Preconditions @@ -33,6 +33,13 @@ notify_user() { start() { /opt/emcomm-tools/bin/et-kill-all && update-config && /usr/bin/js8call & + + if [ ! -e /dev/et-gps ]; then + notify-send -u critical -i \ + /usr/share/icons/Yaru/48x48/status/dialog-information.png \ + "No GPS. Ensure your time is accurate when JS8 starts." + fi + } update-config () {