From e1d90ec07c8716b82465b49408816f8d02bb69a2 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:42:54 -0400 Subject: [PATCH] uninstall: click uninstall link on uninstall --- uninstall | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uninstall b/uninstall index 0f9882bff6..e6440cd541 100755 --- a/uninstall +++ b/uninstall @@ -7,6 +7,11 @@ function error { DIRECTORY="$(readlink -f "$(dirname "$0")")" +#click new uninstallation analytics link +if [ "$(cat "${DIRECTORY}/data/settings/Enable analytics")" == 'Yes' ];then + curl -s -X 'GET' "https://analytics.pi-apps.io/pi-apps-uninstall-script/track" -H 'accept: image/gif' -A "Pi-Apps Raspberry Pi app store" >/dev/null & +fi + if [ -z "$(dpkg-query -W --showformat='${Status}\n' yad 2>/dev/null | grep "install ok installed")" ];then zenity --title='Pi-Apps' --window-icon="${DIRECTORY}/icons/logo.png" \ --list --text="Do you want to uninstall YAD?" \