From b79b25dece31a3cfed31b21c5131caff5b180ac5 Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 22 Sep 2021 22:19:38 -0500 Subject: [PATCH] Zoom: uninstall: retain config but warn if it exists --- apps/Zoom/uninstall | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/Zoom/uninstall b/apps/Zoom/uninstall index 337557c..13aaccc 100755 --- a/apps/Zoom/uninstall +++ b/apps/Zoom/uninstall @@ -6,8 +6,14 @@ function error { echo -e "\\e[91m$1\\e[39m" exit 1 } -gio trash "${HOME}/.zoom" -gio trash "${HOME}/zoom" + +rm -rf ~/zoom rm -f ~/.local/share/applications/zoom.desktop -#if your app installs any packages, keep this command here so those packages will be removed. + "${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + +if [ -d ~/.zoom ] || [ -f ~/.config/zoomus.conf ];then + echo "To prevent data loss, Zoom's settings have not been deleted. +Delete them with this command: +rm -rf ~/.zoom ~/.config/zoomus.conf" +fi