signal-desktop/app/startup_config.ts

20 lines
562 B
TypeScript
Raw Normal View History

2021-10-01 18:49:59 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { app } from 'electron';
import packageJson from '../package.json';
import * as GlobalErrors from './global_errors';
GlobalErrors.addHandler();
// Set umask early on in the process lifecycle to ensure file permissions are
// set such that only we have read access to our files
process.umask(0o077);
2023-08-01 16:06:29 +00:00
export const AUMID = `org.whispersystems.${packageJson.name}`;
2021-10-01 18:49:59 +00:00
console.log('Set Windows Application User Model ID (AUMID)', {
2023-08-01 16:06:29 +00:00
AUMID,
2021-10-01 18:49:59 +00:00
});
2023-08-01 16:06:29 +00:00
app.setAppUserModelId(AUMID);