mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-05 09:25:24 -05:00
Do not ask whether firefox is installed as a snap. (#8756)
This commit is contained in:
parent
d5adf7592c
commit
3383882b95
@ -59,17 +59,7 @@ JSON_CHROME=$(cat << EOF
|
|||||||
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() {
|
setupFirefox() {
|
||||||
askBrowserSnap "./snap/firefox/common"
|
|
||||||
JSON_OUT=${JSON_FIREFOX}
|
JSON_OUT=${JSON_FIREFOX}
|
||||||
INSTALL_DIR="${BASE_DIR}/.mozilla/native-messaging-hosts"
|
INSTALL_DIR="${BASE_DIR}/.mozilla/native-messaging-hosts"
|
||||||
}
|
}
|
||||||
@ -80,7 +70,6 @@ setupChrome() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setupChromium() {
|
setupChromium() {
|
||||||
askBrowserSnap "./snap/chromium/current"
|
|
||||||
JSON_OUT=${JSON_CHROME}
|
JSON_OUT=${JSON_CHROME}
|
||||||
INSTALL_DIR="${BASE_DIR}/.config/chromium/NativeMessagingHosts"
|
INSTALL_DIR="${BASE_DIR}/.config/chromium/NativeMessagingHosts"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user