aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/lib.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nix/lib.nix b/nix/lib.nix
index 93b3dc8..e152df9 100644
--- a/nix/lib.nix
+++ b/nix/lib.nix
@@ -87,6 +87,8 @@ rec {
launcher = firefox: pkgs.writeShellScriptBin "firefox" ''
# FF doesn't accept ro profiles, tries to create lockfile
TMP_PROFILE="$(mktemp -d)"
+ echo "$TMP_PROFILE"
+
function finish() {
echo deleting profile
# rm -rv "$TMP_PROFILE"
@@ -95,8 +97,15 @@ rec {
# cp -r ''${profile} "$TMP_PROFILE"
chmod u+rwx -R "$TMP_PROFILE"
+ export MOZ_LOG=nsHttp:1
+ export MOZ_LOG_FILE=ff
+ # Make FF pay attention to services.settings.server
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1598562
+ export XPCSHELL_TEST_PROFILE_DIR=1
+
${firefox}/bin/firefox \
--no-remote \
- --profile "$TMP_PROFILE"
+ --profile "$TMP_PROFILE" \
+ "$@"
'';
}