mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	Prevent (re)start on install & uninstall
This commit is contained in:
		| @@ -1,6 +1,10 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| const {app, globalShortcut, BrowserWindow} = require('electron'); | ||||
|  | ||||
| // Prevent Trilium starting twice on first install and on uninstall for the Windows installer. | ||||
| if (require('electron-squirrel-startup')) return; | ||||
|  | ||||
| const sqlInit = require('./src/services/sql_init'); | ||||
| const appIconService = require('./src/services/app_icon'); | ||||
| const windowService = require('./src/services/window'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user