Why does X11 output “connect /tmp/.X11-unix/X1: No such file or directory”
问题 I want to silently test whether X11 is working, from a script. I keep getting "connect /tmp/.X11-unix/X1: No such file or directory", even if I redirect stdout and stderr to /dev/null with (for example) xset q > /dev/null 2>&1 I strace'd, and it doesn't appear to be getting written by xset. I also strace'd the relevant sshd and it doesn't seem to be writing it either. xset, xdpyinfo and the test program at How to check if X server is running? all output this useless error message. In fact, so