Skip to content
Permalink
Browse files

firefox-wrapper: stop creating new profiles when the binary path changes

With a recent change to firefox (that landed in 67) a new profile is
created whenever the install location changes. Since our install
location (the binary path) always changes when we do a new build it is
rather annoying.

Setting the environment variable `SNAP_NAME` to `firefox` is supposed to
workaround the issue.

related to NixOS#58923

Woarkound taken from rail/nixos-configs@1ff8b6c

cc @rail
  • Loading branch information
andir committed May 23, 2019
1 parent 089eeed commit 082ed38cb11b1a53cc5583ea44fdd8e90500e43b
Showing with 1 addition and 0 deletions.
  1. +1 −0 pkgs/applications/networking/browsers/firefox/wrapper.nix
@@ -127,6 +127,7 @@ let
--suffix PATH ':' "$out${browser.execdir or "/bin"}" \
--set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \
--set MOZ_SYSTEM_DIR "$out/lib/mozilla" \
--set SNAP_NAME "firefox" \
${lib.optionalString gdkWayland ''
--set GDK_BACKEND "wayland" \
''}${lib.optionalString (browser ? gtk3)

0 comments on commit 082ed38

Please sign in to comment.