Skip to content

Installing the Firefox or Thunderbird (no snap)

Remove default snap

snap remove --purge thunderbird && apt remove thunderbird 
snap remove --purge firefox && apt remove firefox

Register the Mozilla PPA

add-apt-repository --ppa ppa:mozillateam/ppa

Prevent APT from install the snap again

Prefer any Mozilla package and prevent installing any Thunderbird & Firefox package as a snap from the PPA.

echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1

Package: thunderbird*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: thunderbird*
Pin: release o=Ubuntu
Pin-Priority: -1

' > /etc/apt/preferences.d/mozilla

Auto Update the Mozilla PPA packages

echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' > /etc/apt/apt.conf.d/51unattended-upgrades-firefox

Check

Update the ap database to be sure.

apt update

Where are packages installed from?

apt policy thunderbird
apt policy firefox

Install Firefox or Thunderbird

apt install firefox
apt install thunderbird

Use of Native File Open/Save Dialog

Add this the following environment variable to the system profile or user profile.

GTK_USE_PORTAL=1

System Profile

To add it to the system profile by creating a file in directory /etc/profile.d/ named 90-mozilla-use-portal.sh

echo '
# Use of native file open or save dialog in Thunderbird and Firefox.
export GTK_USE_PORTAL=1
' > /etc/profile.d/90-mozilla-use-portal.sh 

User Profile

Append variable export to the end of the existing user .profile file.

echo '
# Use of native file open or save dialog in Thunderbird and Firefox.
export GTK_USE_PORTAL=1
' >> "${HOME}/.profile"