Just check DISPLAY env var