public static boolean isInHeadlessMode() {
		String headlessProperty = System.getProperty(HEADLESS_PROPERTY, Boolean.TRUE.toString());
		return Boolean.parseBoolean(headlessProperty);
	}
Returns true if the system is running without a GUI.

@return true if the system is running without a GUI.
Ghidra/Framework/Utility/src/main/java/ghidra/util/SystemUtilities.java