abiyani / automate-save-page-as

Automate browser's "Save Page As" operation
Apache License 2.0
168 stars 50 forks source link

Error: Can't open display: (null) #15

Closed Richies97 closed 6 years ago

Richies97 commented 6 years ago

When i start the script i get then Error messages

Error: Can't open display: (null) Failed creating new xdo instance

I am running it with firefox on Ubunut 14.04

abiyani commented 6 years ago

Are you running it from a non-interactive session ? Try running simply xdotool - does that work for you ? My guess would be you are running script in such a way that it can't connect to X server.

Richies97 commented 6 years ago

Yeah i think that was the problem, I could fix it the solution was adding this to the file

export DISPLAY=":0" export XAUTHORITY=/home/grk1lk02/.Xauthority