Test ing various methods to determine if we are in X session