#!/usr/bin/env bash echo "**** Installing/upgrading Firefox via flatpak ****" # Install Firefox flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak --user install --assumeyes --or-update flathub org.mozilla.firefox # Configure Firefox as the default browser echo "Configure Firefox..." custom_webbrowser="$(cat < "${USER_HOME:?}/.local/share/xfce4/helpers/custom-WebBrowser.desktop" gio mime x-scheme-handler/http org.mozilla.firefox.desktop fi echo "DONE"