diff options
author | tilpner | 2020-06-14 20:41:07 +0200 |
---|---|---|
committer | tilpner | 2020-06-14 20:41:07 +0200 |
commit | 624bf6aea6fc49f3ee4643df7b4693523e2d9452 (patch) | |
tree | 8427de5d93c61618e795f4318dd32ed54b1b106d | |
parent | 885a16dce7a93ecb359594caf62a9c88b789d7a0 (diff) | |
download | firefox-profiles-624bf6aea6fc49f3ee4643df7b4693523e2d9452.tar.gz firefox-profiles-624bf6aea6fc49f3ee4643df7b4693523e2d9452.tar.xz firefox-profiles-624bf6aea6fc49f3ee4643df7b4693523e2d9452.zip |
lib: make network debugging easier
-rw-r--r-- | nix/lib.nix | 11 |
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" \ + "$@" ''; } |