I'm trying to do a recording of my screen under Ubuntu 14.04 (Unity) with RecordMyDesktop. I'm posting here screenshots of its config. Also, I'm using dual monitor, and I want to select only one. So I selected it "as window". I tried giving the display as a command line argument, same result. I tried running as root, same result: "Cannot connect to X Server".
And, this is what happens every time: