bash/usr-local-bin/firefox: fallback to firefox-esr instead of deprecated firefox-wayland (which was also deprecated by this wrapper)

This commit is contained in:
Aminda Suomalainen 2024-05-13 18:54:57 +03:00
parent d0e81f0901
commit 84616ff2a6
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -13,12 +13,12 @@ FlagsForFirefox="--ProfileManager $@"
# Developer edition (and signatures): https://releases.mozilla.org/pub/devedition/releases/
if [ -f ~/.local/firefox/firefox ]; then
~/.local/firefox/firefox $FlagsForFirefox
# Fallback to global wayland installation
elif [ -f /usr/bin/firefox-wayland ]; then
/usr/bin/firefox-wayland $FlagsForFirefox
# Fallback to global installation
elif [ -f /usr/bin/firefox ]; then
/usr/bin/firefox $FlagsForFirefox
# Fallback to global installation
elif [ -f /usr/bin/firefox-esr ]; then
/usr/bin/firefox-esr $FlagsForFirefox
# Fallback to flatpak, don't care if it doesn't exist
else
flatpak run org.mozilla.firefox $FlagsForFirefox