def METHOD_NAME():
    """
    Check the environment for reasons libnotify isn't working.  Return a
    user-readable message indicating possible issues.
    """
    if not Notify:
        return (
            "<p>Error: gir-notify isn't installed. On Ubuntu/Debian, install the "
            '<a href="apt:gir1.2-notify-0.7">gir1.2-notify-0.7</a> or '
            '<a href="apt:gir1.0-notify-0.4">gir1.0-notify-0.4</a> package.'
        )
    if "DISPLAY" not in os.environ and "DBUS_SESSION_BUS_ADDRESS" not in os.environ:
        return (
            "<p>Error: Environment variables DISPLAY and DBUS_SESSION_BUS_ADDRESS "
            "aren't set.  libnotify will only work when you run SickChill "
            "from a desktop login."
        )
    try:
        import dbus
    except (ImportError, Exception):
        dbus = None
    if dbus:
        try:
            bus = dbus.SessionBus()
        except dbus.DBusException as error:
            return ("<p>Error: unable to connect to D-Bus session bus: <code>{}</code>." "<p>Are you running SickChill in a desktop session?").format(
                html.escape(error)
            )
        try:
            bus.get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
        except dbus.DBusException as error:
            return (
                "<p>Error: there doesn't seem to be a notification daemon available: <code>{}</code> "
                "<p>Try installing notification-daemon or notify-osd."
            ).format(html.escape(error))
    return "<p>Error: Unable to send notification."