2022-04-04 14:45:55 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-04-19 20:32:18 +02:00
|
|
|
# I always want to see the profile manager, whether it's my first run or
|
|
|
|
# not and I probably have to micromanage wayland enabling everywhere.
|
|
|
|
|
|
|
|
# I cannot use the Flatpak as it doesn't support smartcards.
|
|
|
|
|
2022-04-04 14:45:55 +02:00
|
|
|
set -x
|
2022-04-16 15:01:07 +02:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2022-04-20 07:32:55 +02:00
|
|
|
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
|
|
|
|
|
2022-04-04 14:45:55 +02:00
|
|
|
set +x
|