electron-webrtc icon indicating copy to clipboard operation
electron-webrtc copied to clipboard

a way to tell if deps are installed?

Open mafintosh opened this issue 8 years ago • 3 comments

freaking cool project!

is there any way to tell whether or not all deps required to run electron-webrtc are installed on the computer? like a electronWebrtc.supported or electronWebrtc.supported(callback) (if it is async)?

i'd like to do my own error handling instead of having electron-webrtc print out the message telling users to install xvfb.

mafintosh avatar Jun 09 '16 21:06 mafintosh

Good idea. Although, currently the way it checks if xvfb is installed is by trying to run it: https://github.com/mappum/electron-eval/blob/master/src/index.js#L77-L93

mappum avatar Jun 09 '16 21:06 mappum

I'm not sure how to check other than trying to run it, but maybe we could make electronWebrtc.supported(callback) spawn a xvfb process then kill it right away.

mappum avatar Jun 09 '16 21:06 mappum

sounds good!

mafintosh avatar Jun 09 '16 23:06 mafintosh