def METHOD_NAME():
    """
    Direct run of screen size check without subprocess
    """
    if sys.platform.startswith("linux") and os.getenv("DISPLAY") is None:
        bluemira_debug(
            "No DISPLAY variable found, set DISPLAY to have interactive figures."
        )
        return None, None
    # IPython detection (of sorts)
    app = QtWidgets.QApplication.instance()
    if app is None:
        # if IPython isn't open then a QApplication is created to get screen size
        app = QtWidgets.QApplication([])
        rect = app.primaryScreen().availableGeometry()
    else:
        rect = app.primaryScreen().availableGeometry()
    return rect.width(), rect.height()