From dd1cf4f198fb549d7a0970382d6a0855a8f6be41 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Thu, 16 Apr 2026 16:37:16 -0700 Subject: [PATCH] Configure Librewolf to delegate claude-cli:// URIs to xdg-open The xdg desktop entry and mimeapps were already registered but Librewolf doesn't delegate unknown URI schemes to the system handler by default. This adds user.js prefs to complete the chain. Co-Authored-By: Claude Opus 4.6 (1M context) --- nixos/ringtail/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/ringtail/configuration.nix b/nixos/ringtail/configuration.nix index 25475c4..b1723e3 100644 --- a/nixos/ringtail/configuration.nix +++ b/nixos/ringtail/configuration.nix @@ -226,6 +226,13 @@ in home-manager.users.eblume = { home.stateVersion = "25.11"; + # Librewolf: delegate claude-cli:// URIs to system handler (xdg-open) + home.file.".config/librewolf/librewolf/backlhkh.default/user.js".text = '' + user_pref("network.protocol-handler.expose.claude-cli", false); + user_pref("network.protocol-handler.external.claude-cli", true); + user_pref("network.protocol-handler.warn-external.claude-cli", false); + ''; + wayland.windowManager.sway = { enable = true; checkConfig = false;