1 import biometrics from './lib/biometrics';
2 import { setupIpcHandlers as clipboard } from './lib/clipboard';
3 import { setupIpcHandlers as info } from './lib/install-info';
4 import { setupIpcHandlers as navigation } from './lib/navigation';
5 import { setupIpcHandlers as theming } from './lib/theming';
6 import type { PassElectronContext } from './types';
7 import { handleSquirrelEvents } from './utils/squirrel';
9 export const startup = async (ctx: PassElectronContext) => {
10 // Handle creating/removing shortcuts on Windows when installing/uninstalling.
11 await handleSquirrelEvents();
13 // Initialize IPC handlers
14 biometrics(() => ctx.window);
15 navigation(() => ctx.window);