FWeinb/node-webkit-screenshot

Autodetect NODESCREENSHOT_SHOW?

Opened this issue · 3 comments

If you like to use this on travis or with a framebuffer like xvfb than you need to set the environment variable NODESCREENSHOT_SHOW to 1. (export NODESCREENSHOT_SHOW).

Any way you can auto-detect this? Not a big fan of requiring users to set this manually.

I don't really know a solution for this. But this flag is only necessary if you don't have a window environment, like on travis.
Maybe there is a way to detect if there is no window environment?

That's what I'm asking for, but no idea how.