Do not ask whether firefox is installed as a snap. (#8756)

This commit is contained in:
Olivier Tilloy 2022-12-19 04:54:56 +01:00 committed by GitHub
parent 12be175d58
commit 2dbb29fc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,17 +59,7 @@ JSON_CHROME=$(cat << EOF
EOF
)
askBrowserSnap() {
if (whiptail --title "Snap Choice" --defaultno \
--yesno "Is this browser installed as a snap (usually NO)?" 8 60); then
# BASE_DIR="$1"
whiptail --title "Snap Choice" --msgbox "Sorry, browsers installed as snaps are not supported at this time" 8 50
exit 0
fi
}
setupFirefox() {
askBrowserSnap "./snap/firefox/common"
JSON_OUT=${JSON_FIREFOX}
INSTALL_DIR="${BASE_DIR}/.mozilla/native-messaging-hosts"
}
@ -80,7 +70,6 @@ setupChrome() {
}
setupChromium() {
askBrowserSnap "./snap/chromium/current"
JSON_OUT=${JSON_CHROME}
INSTALL_DIR="${BASE_DIR}/.config/chromium/NativeMessagingHosts"
}