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)
(cherry picked from commit 1166e171ba)
This commit is contained in:
Alexander Rezvov
2026-09-26 00:31:33 +03:00
committed by github-actions[bot]
parent 6b84ff6efa
commit aa4cb8c380

View File

@@ -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"
];
})
];