diff options
Diffstat (limited to 'electron_js')
| -rw-r--r-- | electron_js/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |
