Skip to content

Commit

Permalink
gui: add runonce for is_supported_system with a GUI popup
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Nov 10, 2023
1 parent 1d32d9c commit 8ab1e1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gui
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 8ab1e1f

Please sign in to comment.