Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop): align the Nix window class with the launcher (closes #11316)

Elian Doran37a2dd559da8
diff --git a/apps/desktop/src/app-info.ts b/apps/desktop/src/app-info.ts
index 96fd6eee5b..82a62398cb 100644
--- a/apps/desktop/src/app-info.ts
+++ b/apps/desktop/src/app-info.ts
@@ -1,4 +1,5 @@
/**
- * The Electron product name (can be used for the window WMClass or passed down to the Electron packager).
+ * The Electron product name: the packaged output's name, the `Name` entry of the
+ * Linux desktop files, and the `app.setName()` value on Linux.
*/
export const PRODUCT_NAME = "Trilium Notes";
diff --git a/flake.nix b/flake.nix
index e7f642c06c..dec8648e0f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -278,13 +278,13 @@
desktopItems = lib.optionals (app == "desktop") [
(makeDesktopItem {
- name = "Trilium Notes";
+ name = meta.mainProgram;
exec = meta.mainProgram;
icon = "trilium";
comment = meta.description;
desktopName = "Trilium Notes";
categories = [ "Office" ];
- startupWMClass = "Trilium Notes";
+ startupWMClass = meta.mainProgram;
})
];