about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-09-04 02:09:39 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-09-04 02:14:53 +0200
commit87e261843c4236c541ee0113988286f77d2fa1ee (patch)
treecc9babbfb6e6e31c7e2a6b92164987a1ef38670b /pkgs/applications
parent91c7f8b99f7a35252eb255df1ce4c9132ca6e483 (diff)
downloadnixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar.gz
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar.bz2
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar.lz
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar.xz
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.tar.zst
nixlib-87e261843c4236c541ee0113988286f77d2fa1ee.zip
firefox/wrapper: Set new style override for legacy profiles & allow downgrades
While Firefox 68 started messing with our profiles and required new
profiles on binary location changes Firefox 69 now verifies that we
aren't downgrading to an older Firefox even of the same version. If you
switch between two channel versions and/or between nixpkgs releases
Firefox will refuse to start and demand a fresh profile. Disabling the
downgrade protection works around that issue.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/browsers/firefox/wrapper.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix
index 2a4db14b2c6d..3ed06717f6a2 100644
--- a/pkgs/applications/networking/browsers/firefox/wrapper.nix
+++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix
@@ -129,6 +129,8 @@ let
             --set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \
             --set MOZ_SYSTEM_DIR "$out/lib/mozilla" \
             --set SNAP_NAME "firefox" \
+            --set MOZ_LEGACY_PROFILES 1 \
+            --set MOZ_ALLOW_DOWNGRADE 1 \
             ${lib.optionalString gdkWayland ''
               --set GDK_BACKEND "wayland" \
             ''}${lib.optionalString (browser ? gtk3)