factory
factory
¶
Session-bus probing factory for the appropriate Notifier.
Thin convenience: try a real DbusNotifier, fall back to a
NullNotifier if no session bus is reachable. Lives at the
same layer as the concrete backends so CLI / consumer code can reach
it without importing the package root (which causes a layering
circularity — interface → interface).
create_notifier(app_name='terok')
async
¶
Return a connected DbusNotifier, or a NullNotifier on failure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app_name
|
str
|
Application name sent with every notification. |
'terok'
|
Returns:
| Type | Description |
|---|---|
Notifier
|
A |