about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-05-24 00:17:40 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-05-24 00:17:40 +0200
commit082ed38cb11b1a53cc5583ea44fdd8e90500e43b (patch)
tree8ac2c33748d76a0366c0739673f070fccefa2cfb /pkgs/applications/networking
parent089eeed671d0f7b1141694ed37710f81c92f804f (diff)
downloadnixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar.gz
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar.bz2
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar.lz
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar.xz
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.tar.zst
nixlib-082ed38cb11b1a53cc5583ea44fdd8e90500e43b.zip
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 #58923

Woarkound taken from https://github.com/rail/nixos-configs/commit/1ff8b6c3d8b98d0695045eedb97ce135025c36a1

cc @rail
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/browsers/firefox/wrapper.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix
index 90df5c40395a..61484478e4de 100644
--- a/pkgs/applications/networking/browsers/firefox/wrapper.nix
+++ b/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)