b/u-l-p/firefox: add conditions for local, system and flatpak installations

Resolves: #38
This commit is contained in:
Aminda Suomalainen 2022-04-20 08:32:55 +03:00
parent f6e9c796be
commit 9d2e5953f9
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -7,6 +7,20 @@
set -x set -x
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
#flatpak run org.mozilla.firefox --ProfileManager $@ FlagsForFirefox="--ProfileManager $@"
/usr/bin/firefox --ProfileManager
# Firefox (stable, beta) and signatures: https://releases.mozilla.org/pub/firefox/releases/
# Developer edition (and signatures): https://releases.mozilla.org/pub/devedition/releases/
if [ -f ~/.local/firefox/firefox ]
then
~/.local/firefox/firefox $FlagsForFirefox
# Fallback to global installation
elif [ -f /usr/bin/firefox ]
then
/usr/bin/firefox $FlagsForFirefox
# Fallback to flatpak, don't care if it doesn't exist
else
flatpak run org.mozilla.firefox $FlagsForFirefox
fi
set +x set +x