From 81cd4f021681fd422b32f3bbd9ec77fc72fec355 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 12 Apr 2024 13:52:12 +0200 Subject: 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 --- pkgs/aszlig/firefox/default.nix | 1 + 1 file changed, 1 insertion(+) 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); -- cgit 1.4.1