From 8ab1e1fae585a6ef55339a6001d8410727354502 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:46:42 -0500 Subject: [PATCH] gui: add runonce for `is_supported_system` with a GUI popup --- gui | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gui b/gui index c089be8b0d..682717b0d2 100755 --- a/gui +++ b/gui @@ -83,6 +83,21 @@ runonce <<"EOF" fi EOF +#run is_supported_system once mostly to check for unsupported ubuntu/debian distros and warn the user with a blocking GUI popup +runonce <<"EOF" + if ! is_supported_system >/dev/null;then + text="YOUR SYSTEM IS UNSUPPORTED: +$(is_supported_system) + +Pi-Apps will disable the sending of any error reports until you have resolved the issue above. +Your mileage may vary with using Pi-Apps in this state. Expect the majority of apps to be broken." + + yadflags=(--class Pi-Apps --name "Pi-Apps" --window-icon="${DIRECTORY}/icons/logo.png" --title="Pi-Apps") + userinput_func "$text" "Ok" + fi + true +EOF + #Various stuff to run in background (enclosed in brackets so Geany IDE can collapse the code) { mkdir -p "${DIRECTORY}/data/status" "${DIRECTORY}/data/update-status" \