Launch on startup with custom parameters
scruel opened this issue · comments
I would like to add some parameters (like proxies) for launching in the panel, if you can add an input for settings this, it will be really nice, thanks!
That's a good idea. Would you mind giving me some example parameters I could use to test this?
I'm not totally certain why yet, but there seems to be something to do with the way Obsidian launches that strips out custom flags - e.g. I tried passing an argument to the electron.app.relaunch
call to detect and base startup actions (e.g. "hide on launch") on whether it was an initial launch or a relaunch, but it wasn't in process.argv
when I checked for it. There'll be a way to get this working, I'm sure, but it would help to have some real-world parameters I can test with to see when I've got it working.
Hi, just check:
https://www.electronjs.org/docs/latest/api/command-line-switches