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)
This commit is contained in:
Alexander Rezvov
2026-09-26 00:31:33 +03:00
parent 8462f03cf6
commit 1166e171ba

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