Installing the Firefox or Thunderbird (no snap)
Remove default snap
Register the Mozilla 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.
Where are packages installed from?
Install Firefox or Thunderbird
Use of Native File Open/Save Dialog
Add this the following environment variable to the system profile or user profile.
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.