This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const { LOCALES } = require("@triliumnext/commons");
5
5
const ELECTRON_FORGE_DIR = __dirname ;
6
6
7
7
const EXECUTABLE_NAME = "trilium" ; // keep in sync with server's package.json -> packagerConfig.executableName
8
- const PRODUCT_NAME = "TriliumNext Notes" ;
8
+ const { PRODUCT_NAME } = require ( "../src/app-info.js" ) ;
9
9
const APP_ICON_PATH = path . join ( ELECTRON_FORGE_DIR , "app-icon" ) ;
10
10
11
11
const extraResourcesForPlatform = getExtraResourcesForPlatform ( ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * The Electron product name (can be used for the window WMClass or passed down to the Electron packager).
3
+ */
4
+ export const PRODUCT_NAME = "TriliumNext Notes" ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import options from "@triliumnext/server/src/services/options.js";
8
8
import electronDebug from "electron-debug" ;
9
9
import electronDl from "electron-dl" ;
10
10
import { deferred } from "@triliumnext/server/src/services/utils.js" ;
11
+ import { PRODUCT_NAME } from "./app-info" ;
11
12
12
13
async function main ( ) {
13
14
const serverInitializedPromise = deferred < void > ( ) ;
@@ -28,6 +29,7 @@ async function main() {
28
29
// Electron 36 crashes with "Using GTK 2/3 and GTK 4 in the same process is not supported" on some distributions.
29
30
// See https://github.com/electron/electron/issues/46538 for more info.
30
31
if ( process . platform === "linux" ) {
32
+ electron . app . setName ( PRODUCT_NAME ) ;
31
33
electron . app . commandLine . appendSwitch ( "gtk-version" , "3" ) ;
32
34
}
33
35
You can’t perform that action at this time.
0 commit comments