From 1166e171bad4c99c06565dfab5115c19e022dcc0 Mon Sep 17 00:00:00 2001 From: Alexander Rezvov Date: Sat, 26 Sep 2026 00:31:33 +0300 Subject: [PATCH] chatzone-desktop: fix URL handling Register the chatzone URL scheme alongside the existing mattermost scheme. Pass URLs to the application with the %U desktop entry field code so links opened through the desktop handler reach Chatzone. Assisted-by: OpenAI Codex (GPT-6) --- pkgs/by-name/ch/chatzone-desktop/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ch/chatzone-desktop/package.nix b/pkgs/by-name/ch/chatzone-desktop/package.nix index 53ea8958ed40..0ceae7faead5 100644 --- a/pkgs/by-name/ch/chatzone-desktop/package.nix +++ b/pkgs/by-name/ch/chatzone-desktop/package.nix @@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation { desktopItems = [ (makeDesktopItem { name = "chatzone"; - exec = "chatzone-desktop"; + exec = "chatzone-desktop %U"; icon = "chatzone-desktop"; terminal = false; desktopName = "Chatzone"; @@ -42,7 +42,10 @@ stdenvNoCC.mkDerivation { "Chat" ]; startupWMClass = "Chatzone"; - mimeTypes = [ "x-scheme-handler/mattermost" ]; + mimeTypes = [ + "x-scheme-handler/mattermost" + "x-scheme-handler/chatzone" + ]; }) ];