node-webkit-screenshot icon indicating copy to clipboard operation
node-webkit-screenshot copied to clipboard

Autodetect NODESCREENSHOT_SHOW?

Open sindresorhus opened this issue 10 years ago • 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.

sindresorhus avatar Jul 13 '14 20:07 sindresorhus

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?

FWeinb avatar Jul 15 '14 15:07 FWeinb

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

sindresorhus avatar Jul 15 '14 22:07 sindresorhus

Maybe something like this: http://askubuntu.com/questions/60586/how-to-check-if-xvfb-is-already-running-on-display-0

FWeinb avatar Jul 16 '14 16:07 FWeinb