Skip to content

Instantly share code, notes, and snippets.

@slp
Created June 30, 2020 07:54
Show Gist options
  • Save slp/b3e4637e92d9b59a126c0f488d3b953f to your computer and use it in GitHub Desktop.
Save slp/b3e4637e92d9b59a126c0f488d3b953f to your computer and use it in GitHub Desktop.
Quick recipe for an evergreen Firefox using Flatpak
flatpak --user install flathub org.mozilla.firefox
flatpak run org.mozilla.firefox

# Personalize the browser, log in to the places you
# want to visit with your own account, and quit it.

# Save a copy of the app's data directory to use it
# as a template.
cp -a $HOME/.var/app/org.mozilla.firefox \
 $HOME/.var/app/org.mozilla.firefox.template

# Whenever you want to refresh your browser, replace
# the app's data directory with the template. You can
# put this into a script and run it on each reboot.
rm -fr $HOME/.var/app/org.mozilla.firefox
cp -a $HOME/.var/app/org.mozilla.firefox.template \
 $HOME/.var/app/org.mozilla.firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment