about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2024-04-12 13:52:12 +0200
committeraszlig <aszlig@nix.build>2024-04-12 14:01:15 +0200
commit81cd4f021681fd422b32f3bbd9ec77fc72fec355 (patch)
tree77a20bf96bb19968347adf10140c2018897de09a
parentfcbf9f3dd163197d4b497fcf450c85fc1313e077 (diff)
firefox: Do not download PDF attachments
This is a behaviour that has been introduced at some point and it's been
annoying to have all those PDFs laying around in my Downloads directory.

If I still want to save the PDF, I can do so explicitly so I see no
downside to always open PDF attachments inline (without saving).

Signed-off-by: aszlig <aszlig@nix.build>
-rw-r--r--pkgs/aszlig/firefox/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/aszlig/firefox/default.nix b/pkgs/aszlig/firefox/default.nix
index 5ab581cb..f6227866 100644
--- a/pkgs/aszlig/firefox/default.nix
+++ b/pkgs/aszlig/firefox/default.nix
@@ -71,6 +71,7 @@ in wrapFirefox firefoxNoSigning {
     lockPref('browser.aboutConfig.showWarning', false);
     lockPref('browser.aboutwelcome.enabled', false);
     lockPref('browser.contentblocking.category', 'strict');
+    lockPref('browser.download.open_pdf_attachments_inline', true);
     lockPref('browser.laterrun.enabled', false);
     lockPref('browser.newtab.extensionControlled', true);
     lockPref('browser.newtab.privateAllowed', false);