summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-11-22 15:29:27 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-11-23 11:01:28 +0100
commitfdf4bfdc4c9fe52859179d034567d32e1a625eb6 (patch)
treea67cd22f3e8fbc9cc3207686f5bddc645b8cc293
parente234734d5df29624ead6a502f268941e440a1685 (diff)
downloadmullvadvpn-fdf4bfdc4c9fe52859179d034567d32e1a625eb6.tar.xz
mullvadvpn-fdf4bfdc4c9fe52859179d034567d32e1a625eb6.zip
Remove login item in uninstall script on macOS
-rwxr-xr-xdist-assets/uninstall_macos.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist-assets/uninstall_macos.sh b/dist-assets/uninstall_macos.sh
index 72b11e2e51..83316da3ba 100755
--- a/dist-assets/uninstall_macos.sh
+++ b/dist-assets/uninstall_macos.sh
@@ -38,6 +38,9 @@ echo "Removing app from /Applications ..."
sudo rm -rf /Applications/Mullvad\ VPN.app
sudo pkgutil --forget net.mullvad.vpn || true
+echo "Removing login item ..."
+osascript -e 'tell application "System Events" to delete login item "Mullvad VPN"' 2>/dev/null || true
+
read -p "Do you want to delete the log and cache files the app has created? (y/n) "
if [[ "$REPLY" =~ [Yy]$ ]]; then
sudo rm -rf /var/log/mullvad-vpn /var/root/Library/Caches/mullvad-vpn /Library/Caches/mullvad-vpn