sgentle/phantomjs-node — Issue #21: Specify display for phantom to run on
Author: OlduwanSteve
Created: 2012-03-01 12:09:11+00:00
State: open

It would be handy for headless setup if you could specify the display that you want phantom to run on. I tried hacking this in with:

ps = child.spawn('phantomjs', args.concat([__dirname + '/shim.js', port]), { env : { DISPLAY : ':0' }});

in startPhantomProcess and it seems to work, but perhaps it could be an option of the create method in the API?