diff --git a/CHANGELOG.md b/CHANGELOG.md index ce3575f7..928696b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - bug fixes - script: broken `storage.getItem` and `storage.removeItem` + - regression breaking `remote-root` option when starting with the launcher ## 1.0.3 diff --git a/package.json b/package.json index 254c79a6..b08b7eec 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.0.3", + "version": "1.0.4", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" diff --git a/resources/docs/docs/getting-started/server-configuration.md b/resources/docs/docs/getting-started/server-configuration.md index 033e49ed..aa834a31 100644 --- a/resources/docs/docs/getting-started/server-configuration.md +++ b/resources/docs/docs/getting-started/server-configuration.md @@ -95,7 +95,7 @@ The **server** can be configured with many options, either from a terminal or wi === "remote-saving" - Disable file saving for hosts that don't match the regular expresion. + Disable file saving for hosts that don't match the regular expression. Sessions are saved and opened on the server's filesystem. It is possible to limit this feature to specific client with a regular expression. For example, `"127.0.0.1|192.168.0.10"` disables remote saving except for clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`. @@ -165,7 +165,7 @@ Options name must be prepended with a double dash (`--`) in a terminal. open-stage-control --no-gui --load path/to/your/session.json --theme path/to/your/theme.css ``` - Launches the server in headless mode, and makes all clients load provided session and theme automatically. + Launches the server in headless mode, and makes all clients load provided session and theme automatically. ## Running in a terminal on Windows diff --git a/src/server/index.js b/src/server/index.js index c4663dde..134a6e84 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -166,7 +166,7 @@ if (settings.cli) { } } - global.serverProcess = spawn(process.argv[0], args, {stdio: 'pipe', env: {'ELECTRON_RUN_AS_NODE':'1'}}) + global.serverProcess = spawn(process.argv[0], args, {stdio: 'pipe', env: {...process.env, 'ELECTRON_RUN_AS_NODE':'1'}}) launcher.webContents.send('server-started') if (!settings.read('no-gui')) { diff --git a/src/server/options.js b/src/server/options.js index 713b7cfb..85cd5e63 100644 --- a/src/server/options.js +++ b/src/server/options.js @@ -80,7 +80,7 @@ module.exports = { 'disable-vsync': {type: 'boolean', describe: 'disable gui\'s vertical synchronization', restart: true}, 'force-gpu': {type: 'boolean', describe: 'ignore chrome\'s gpu blacklist', restart: true}, 'read-only': {type: 'boolean', describe: 'disable session editing and session history changes'}, - 'remote-saving': {type: 'string', describe: 'disable remote session saving for hosts that don\'t match the regular expresion', + 'remote-saving': {type: 'string', describe: 'disable remote session saving for hosts that don\'t match the regular expression', check: (r, argv)=>{ var msg = true try {