Skip to content

Commit

Permalink
Do not ask whether firefox is installed as a snap. (#8756)
Browse files Browse the repository at this point in the history
  • Loading branch information
oSoMoN authored and droidmonkey committed Feb 18, 2023
1 parent d5adf75 commit 3383882
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions utils/keepassxc-snap-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -80,7 +70,6 @@ setupChrome() {
}

setupChromium() {
askBrowserSnap "./snap/chromium/current"
JSON_OUT=${JSON_CHROME}
INSTALL_DIR="${BASE_DIR}/.config/chromium/NativeMessagingHosts"
}
Expand Down

0 comments on commit 3383882

Please sign in to comment.