From 53efe7126574b472ad2f4fcfa448b64a6e3e365f Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 19 Dec 2019 15:43:48 -0500 Subject: #875 allow command line option to change language profile for inputs (better than nothing) --- electron_js/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'electron_js') diff --git a/electron_js/main.js b/electron_js/main.js index 4b2a2c1e..50d86d89 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -22,6 +22,10 @@ if (argv.path) { console.log ("switching storage to: "+app.getPath("userData")); } +if (argv.lang) { + console.log ('SET LANGUAGE TO '+argv.lang) + app.commandLine.appendSwitch('lang', argv.lang); +} // @@ -30,6 +34,7 @@ if (argv.path) { let win; app.commandLine.appendSwitch ('ignore-certificate-errors', 'true'); + const gotTheLock = app.requestSingleInstanceLock() if (!gotTheLock) { @@ -128,6 +133,9 @@ function createWindow() { }); mainWindowState.manage(win); + + + // fs will be arg 1 if its not run in electron debug mode if (argv.fs) { -- cgit v1.2.3