A simple code that checks whether the current sessions has access to a graphical console. Only works for UNIX based systems.