Skip to content

Commit

Permalink
SDA-4496 - Add is mac check (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan authored Mar 12, 2024
1 parent cbf489f commit a1b3634
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/app/init.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { app, crashReporter, Menu, systemPreferences } from 'electron';
import * as path from 'path';

import { isDevEnv } from '../common/env';
import { isDevEnv, isMac } from '../common/env';
import { logger } from '../common/logger';
import { getCommandLineArgs } from '../common/utils';
import { appStats } from './stats';
Expand Down Expand Up @@ -31,8 +31,14 @@ Menu.setApplicationMenu(null);
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');
if (isMac) {
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);
}
Expand Down

0 comments on commit a1b3634

Please sign in to comment.