From de36c87f8b1bb51bd92405bdf61498d35f02062c Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 27 Apr 2022 10:56:10 +0300 Subject: [PATCH] bash/usr-local-bin: add thunderbird --- bash/usr-local-bin/thunderbird | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 bash/usr-local-bin/thunderbird diff --git a/bash/usr-local-bin/thunderbird b/bash/usr-local-bin/thunderbird new file mode 100755 index 0000000..53fda85 --- /dev/null +++ b/bash/usr-local-bin/thunderbird @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# 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. + +set -x +export MOZ_ENABLE_WAYLAND=1 +FlagsForThunderbird="--ProfileManager $@" + +# Thunderbird (stable, beta) and signatures: https://releases.mozilla.org/pub/thunderbird/releases/ +if [ -f ~/.local/thunderbird/thunderbird ] +then + ~/.local/thunderbird/thunderbird $FlagsForThunderbird +# Fallback to global installation +elif [ -f /usr/bin/thunderbird ] +then + /usr/bin/thunderbird $FlagsForThunderbird +# Fallback to flatpak, don't care if it doesn't exist +else + flatpak run org.mozilla.Thunderbird $FlagsForThunderbird +fi + +set +x