Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'feature/server_esm' into feature/server_esm_part2

Elian Doranf0a561565ee0
diff --cc electron.ts
index d4e995b3a0,c3f3b0bed0..754b73bacf
--- a/electron.ts
+++ b/electron.ts
@@@ -8,8 -6,13 +8,13 @@@ import appIconService from "./src/servi
import windowService from "./src/services/window.js";
import tray from "./src/services/tray.js";
+ // Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
+ if (require('electron-squirrel-startup')) {
+ process.exit(0);
+ }
+
// Adds debug features like hotkeys for triggering dev tools and reload
-require('electron-debug')();
+electronDebug();
appIconService.installLocalAppIcon();
diff --cc package-lock.json
index 2ea73be6b6,9da67da3ee..ca6ba038fc
--- a/package-lock.json
+++ b/package-lock.json
@@@ -14745,17 -2614,7 +2615,17 @@@
"@types/node": "*"
}
},
- "@types/session-file-store": {
++ "node_modules/@types/session-file-store": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@types/session-file-store/-/session-file-store-1.2.5.tgz",
+ "integrity": "sha512-xjIyh40IznXLrvbAY/nmxu5cMcPcE3ZoDrSDvd02m6p8UjUgOtZAGI7Os5DDd6THuxClLWNhFo/awy1tYp64Bg==",
+ "dev": true,
- "requires": {
++ "dependencies": {
+ "@types/express": "*",
+ "@types/express-session": "*"
+ }
+ },
- "@types/stream-throttle": {
+ "node_modules/@types/stream-throttle": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/@types/stream-throttle/-/stream-throttle-0.1.4.tgz",
"integrity": "sha512-VxXIHGjVuK8tYsVm60rIQMmF/0xguCeen5OmK5S4Y6K64A+z+y4/GI6anRnVzaUZaJB9Ah9IfbDcO0o1gZCc/w==",