Enables sandbox for all windows except main

This commit is contained in:
Josh Perez
2023-04-20 17:23:19 -04:00
committed by GitHub
parent abb839c24b
commit e211837bcd
67 changed files with 1190 additions and 615 deletions

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as log from '../ts/logging/log';
import OS from '../ts/util/os/osMain';
import {
parseSystemTraySetting,
SystemTraySetting,
@@ -54,7 +55,7 @@ export class SystemTraySettingCache {
log.info(
`getSystemTraySetting saw --use-tray-icon flag. Returning ${result}`
);
} else if (isSystemTraySupported(this.appVersion)) {
} else if (isSystemTraySupported(OS, this.appVersion)) {
const fastValue = this.ephemeralConfig.get('system-tray-setting');
if (fastValue !== undefined) {
log.info('getSystemTraySetting got fast value', fastValue);