bash/usr-local-bin/{firefox,thunderbird}: add -wayland fallback

This commit is contained in:
Aminda Suomalainen 2022-07-05 15:25:41 +03:00
parent a13f337dde
commit 2cc76529e8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,10 @@ FlagsForFirefox="--ProfileManager $@"
if [ -f ~/.local/firefox/firefox ] if [ -f ~/.local/firefox/firefox ]
then then
~/.local/firefox/firefox $FlagsForFirefox ~/.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 # Fallback to global installation
elif [ -f /usr/bin/firefox ] elif [ -f /usr/bin/firefox ]
then then

View File

@ -14,6 +14,10 @@ if [ -f ~/.local/thunderbird/thunderbird ]
then then
~/.local/thunderbird/thunderbird $FlagsForThunderbird ~/.local/thunderbird/thunderbird $FlagsForThunderbird
# Fallback to global installation # Fallback to global installation
elif [ -f /usr/bin/thunderbird-wayland ]
then
/usr/bin/thunderbird-wayland $FlagsForThunderbird
# Fallback to global installation
elif [ -f /usr/bin/thunderbird ] elif [ -f /usr/bin/thunderbird ]
then then
/usr/bin/thunderbird $FlagsForThunderbird /usr/bin/thunderbird $FlagsForThunderbird