From ebe669ca0bfd74464419516752ff12a5a31b712b Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:30:40 +0100 Subject: [PATCH] Fix Librewolf native messaging host --- home/features/desktop/common/firefox.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/home/features/desktop/common/firefox.nix b/home/features/desktop/common/firefox.nix index 1bb7d31..d3e003a 100644 --- a/home/features/desktop/common/firefox.nix +++ b/home/features/desktop/common/firefox.nix @@ -2,11 +2,13 @@ , pkgs , ... }: { - # Enable kde-connect for non-Plasma DEs - home.file.".librewolf/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json"; - programs.librewolf = { enable = true; + package = pkgs.librewolf.override { + nativeMessagingHosts = with pkgs; [ + kdePackages.plasma-browser-integration + ]; + }; profiles.Default = { extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ @@ -122,8 +124,8 @@ "extensions.screenshots.disabled" = true; # Firefox Screenshot feature is annoying "privacy.clearOnShutdown_v2.cookiesAndStorage" = false; # Disable cookie clearing "media.hardwaremediakeys.enabled" = false; # Interferes with KDE Connect - "browser.urlbar.keepPanelOpenDuringImeComposition" = true; # Improve Firefox IME support - "media.eme.enabled" = true; # Enable DRM for e.g. Spotify + "browser.urlbar.keepPanelOpenDuringImeComposition" = true; # Improve Firefox IME support + "media.eme.enabled" = true; # Enable DRM for e.g. Spotify "dom.security.https_only_mode" = true; "browser.download.panel.shown" = false; "browser.toolbars.bookmarks.visibility" = "always";