node-webkit-screenshot
node-webkit-screenshot copied to clipboard
Autodetect NODESCREENSHOT_SHOW?
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.
Maybe something like this: http://askubuntu.com/questions/60586/how-to-check-if-xvfb-is-already-running-on-display-0