I am trying to start firefox headless. The following is the beginning of the shell script that starts it:
#!/bin/sh
Xvfb :99 >/dev/null 2>&1 &
XVFB=$!
sleep 3
firefox --display=:99 >/dev/null 2>&1 &
FIREFOX=$!
When this script is run, the following error occurs:
Xlib: extension "RANDR" missing on display ":99".
I have tried starting Xvfb with the following, but it does not prevent the error:
Xvfb -extension RANDR :99 >/dev/null 2>&1 &
and
Xvfb +extension RANDR :99 >/dev/null 2>&1 &
Is there a better way to enable XRandR in Xvfb so that firefox is able to see the extension?
Alternatively, is there a way to disable XRandR in firefox?