Fixes #1006 (closed)
Much of rule processing requires X11 so turn off rule processing if X11 is not available.