summaryrefslogtreecommitdiff
path: root/electron_js/main.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-12-19 15:43:48 -0500
committerPliable Pixels <pliablepixels@gmail.com>2019-12-19 15:43:48 -0500
commit53efe7126574b472ad2f4fcfa448b64a6e3e365f (patch)
treecb19701017e4dd2857df4becc067a81e4981a8b8 /electron_js/main.js
parent32941f0a56e4c788a3c2f350d28ad33ab7438cbb (diff)
#875 allow command line option to change language profile for inputs (better than nothing)
Diffstat (limited to 'electron_js/main.js')
-rw-r--r--electron_js/main.js8
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)
{