mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
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:
parent
a6cd2b9eea
commit
b1bcbef11a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user