dragonwocky / obsidian-tray

Run Obsidian from the system tray for customisable window management & global quick notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

commented

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.