From 542ead3638ce3e03c00a239b5fab13f5c5f640f8 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Fri, 8 Mar 2024 17:02:57 +0530 Subject: [PATCH] SDA-4496 - Fix dev env issue by setting default values in .plist file (#2106) --- src/app/init.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/init.ts b/src/app/init.ts index 41d7fa7d..d2740eb7 100644 --- a/src/app/init.ts +++ b/src/app/init.ts @@ -1,4 +1,4 @@ -import { app, crashReporter, Menu } from 'electron'; +import { app, crashReporter, Menu, systemPreferences } from 'electron'; import * as path from 'path'; import { isDevEnv } from '../common/env'; @@ -30,6 +30,9 @@ Menu.setApplicationMenu(null); // Set user data path before app ready event if (isDevEnv) { const devDataPath = path.join(app.getPath('appData'), 'Symphony-dev'); + // dev related config settings should be set here + systemPreferences.setUserDefault('contextIsolation', 'boolean', true); + systemPreferences.setUserDefault('installVariant', 'string', '1234-5678-910'); logger.info(`init: Setting user data path to`, devDataPath); app.setPath('userData', devDataPath); }