mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-26 04:59:38 +01:00
b/u-l-p/firefox: add conditions for local, system and flatpak installations
Resolves: #38
This commit is contained in:
parent
f6e9c796be
commit
9d2e5953f9
@ -7,6 +7,20 @@
|
||||
|
||||
set -x
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
#flatpak run org.mozilla.firefox --ProfileManager $@
|
||||
/usr/bin/firefox --ProfileManager
|
||||
FlagsForFirefox="--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
|
||||
|
Loading…
Reference in New Issue
Block a user