fix: SDA-2215: macos preference override (#1023)

* SDA-2215: set macOS double space period preference to false

* SDA-2215: set macOS double space period preference to false
This commit is contained in:
Vishwas Shashidhar 2020-06-23 18:09:49 +05:30 committed by GitHub
parent a6cd2b9eea
commit b1bcbef11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import { app } from 'electron';
import { app, systemPreferences } from 'electron';
import * as electronDownloader from 'electron-dl';
import * as shellPath from 'shell-path';
@ -15,6 +15,10 @@ import { handlePerformanceSettings } from './perf-handler';
import { protocolHandler } from './protocol-handler';
import { ICustomBrowserWindow, windowHandler } from './window-handler';
// Set automatic period substitution to false because of a bug in draft js on the client app
// See https://perzoinc.atlassian.net/browse/SDA-2215 for more details
systemPreferences.setUserDefault('NSAutomaticPeriodSubstitutionEnabled', 'string', 'false');
logger.info(`App started with the args ${JSON.stringify(process.argv)}`);
const allowMultiInstance: string | boolean = getCommandLineArgs(process.argv, '--multiInstance', true) || isDevEnv;