git ssb


0+

Dominic / electro



This makes it easy to run an electro app from the command line, even across multiple windows. This uses @substack's subarg to make it possible to group minimist arguments to specific windows....

%JDTx0jRXX8HX4E0QLyM4fsZUdvsSk8QkYRDLSbGicW0=.sha256
Open Dominic wants to merge commits into master from subarg
Dominic · 12/20/2016, 7:02:04 PM

This makes it easy to run an electro app from the command line, even across multiple windows. This uses @substack's subarg to make it possible to group minimist arguments to specific windows. I was sitting on this feature for a while until @yosh for told me about subarg.

to run sbot with patchbay in separate windows, with the sbot instance hidden you can do this:

electron ./electro/index.js [ ./scuttlebot/bin.js --no-show -- server ] [ ./patchbay/index.js ]

that will start sbot and patchbay in two electron windows, sbot in a hidden window. (maybe this can be configured in a file or something?)

@matt
@dinosaur
what do you think about this method of opening windows?

My idea is to distribute an electron with level and sodium built in, then that is one install, and am then thinking we need a way to update and reload the js on the go. then we are right about there to distribute both sbot and patchbay over ssb!

%x4R8ZUlDx7MppOVEmQiHPOVR8+r9VzK9BS4k2bJDWn0=.sha256 dinosaur · 1/20/2017, 6:34:17 AM

hey @dominic, yeah this is sweet, @matt and i are keen.

@matt wonders how to send IPC messages between processes with this approach.

%5ndqixiK9t/NjXP3gjSx+dkFegVrX0b9QlQdEzrSO8A=.sha256 Dominic · 2/4/2017, 7:21:19 PM

@matt does ferment use IPC? I think we saw some evidence that IPC was slow (compared to localhost TCP) but it would be interesting to compare, especially since am planning to run sbot in a webworker... and that is gonna use postMessage which I'm guessing is based on IPC?

%cA5C3rQFKNVA7ZRy98Tl53z9zAUvIbCZsedhZcju+sY=.sha256 Dominic · 2/4/2017, 7:22:29 PM

the other question I have, is how to configure this, so it just runs, and also how to update that config so that we can update code easily.


Built with git-ssb-web