check X is installed and not running before attempting to run