xdotool not working - Error: Can't open displa

2019-06-26 06:26发布

问题:

executing any command using xdotool gives me the following error :

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

I tried exporting display='0' but none seems to work.

Any idea ?

回答1:

try ------

export DISPLAY=:0.0