maestral.notify.notify_linux

Notification backend for Linux. Includes an implementation to send desktop notifications over Dbus. Responding to user interaction with a notification requires a running asyncio event loop.

Module Contents

Classes

DBusDesktopNotifier

DBus notification backend for Linux

maestral.notify.notify_linux.Impl :Optional[Type[DesktopNotifierBase]][source]
class maestral.notify.notify_linux.DBusDesktopNotifier(app_name: str, app_id: str)[source]

Bases: maestral.notify.notify_base.DesktopNotifierBase

DBus notification backend for Linux

This implements the org.freedesktop.Notifications standard. The DBUS connection is created in a thread with a running asyncio loop to handle clicked notifications.

send(self, notification: Notification)None[source]

Sends a notification.

Parameters

notification – Notification to send.

maestral.notify.notify_linux.Impl[source]