Automatic Configuration Load at Start Up

Hi hivemind,

I use 3 different instances of OSC and have all 3 instances of the application automatically launch at start up.
I was curious if there was a way that anyone can think of for when each instance of the application launches at start up to already have the correct configuration loaded so that all I have to do is press the "start" button?

I do notice that when the application starts up it has the last configuration already preloaded, but it has that loaded in all 3 instances. So that only works for one of the instances, not the other two.

If I need to clarify anything let me know.

Thanks in advance!

You can launch the server with command line arguments and bypass the launcher entirely, I don't know how it's supposed to be done on windows but in the end it should be something like running this in a terminal:

path\to\open-stage-control.exe -- --load path\to\session.json --port 9090

Alternatively if you want to keep the launcher around you can specify a different config file:

path\to\open-stage-control.exe -- --config-file path\to\config.json

or a different cache directory (where to look for config.json and store browser-related cache)

path\to\open-stage-control.exe -- --cache-dir path\to\cache\

(Server configuration - Open Stage Control)

1 Like

What's the exact syntax for client size and position? (running Linux/Ubuntu)

I tried in vain:

--client-size 1200,800
--client-size "1200,800"
--client-size (1200,800)
--client-size [1200,800]

I'd like to open two clients each on a separate monitor screen (attached on a single computer).

The first two are correct, but the option is not parsed correctly, I'll fix that in 1.24.1. The option doesn't support specifying different values for multiple client windows though.

Ah, ok. Thanks.

This bash script successfully opens two client sessions, one fullscreen and one default:

path\to\open-stage-control.exe --load path\to\session_1.json --port 9000 --fullscreen &
path\to\open-stage-control.exe --load path\to\session_2.json --port 9001

Wouldn't it work (after the fix) if changed to something like this? :

path\to\open-stage-control.exe --load path\to\session_1.json --port 9000 --client-position 0,0 --client-size 1200,800 &
path\to\open-stage-control.exe --load path\to\session_2.json --port 9001 --client-position 1200,0 --client-size 2560,1920

Yes with multiple server instances that won't be a problem.

I've found a workaround by using a utility called 'xdotool'. I can use it in the meantime until the fix.

path\to\open-stage-control.exe --load path\to\session_1.json --port 9000 --fullscreen &
sleep 8
xdotool key super+shift+Right
path\to\open-stage-control.exe --load path\to\session_2.json --port 9001 --fullscreen &
sleep 8
xdotool key super+shift+Left

'sleep 8' to give the session enough time to load
'xdotool key super+shift+Right/Left' to move the active window to the other monitor/screen

Thanks for the quick fix!
It works like a charm now.

Apologies for my absence on this. Thank you for your response!!
I'm most of the way there with this but one issue I've encountered is after putting this commands in the command prompt (I'm on windows), the GUI window for the session pops up but errors out giving me a "this.parent.isVisible is not a function".

I've haven't seen this before so it leads me to believe it is something to do with it launching from the command prompt...maybe?
Any suggestions?

Here's what I'm putting in the command prompt:

"path\to\open-stage-control.exe" -l "\path\to\config.config" -p 7500
"path\to\open-stage-control.exe" -l "\path\to\config.config" -p 7500

This doesn't look right:

  • the -l option expect an osc session file (.json), not a config file, did you mean to write
    --config-file instead ?
  • you need a double dash before the options on windows (see my first reply)