D-Bus session bus for inter-process communication inside containers. Use when working with D-Bus, desktop services, Wayland compositor dependencies, or ov dbus commands.
| Property | Value |
|---|---|
| Dependencies | supervisord |
| Service | dbus (supervisord, priority 2) |
| Install files | tasks: |
| Variable | Value |
|---|---|
DBUS_SESSION_BUS_ADDRESS | unix:path=/tmp/dbus-session |
dbus-daemon (RPM)# image.yml -- now included in all images with supervisord
my-image:
layers:
- dbus
ov dbus IntegrationThe ov dbus command provides native Go D-Bus interaction with containers via godbus/dbus/v5. It operates in two modes:
ov dbus notify myimage "title" "body"): delegates to the container's ov binary via engine exec container ov dbus notify . "title" "body". Falls back to gdbus call if ov binary is not in the container.ov dbus notify . "title" "body"): connects directly to the local session bus. This is what runs inside the container when delegated from the host.ov dbus notify <image> "title" "body" # Send desktop notification
ov dbus list <image> # List D-Bus services
ov dbus call <image> <dest> <path> <method> [type:value...] # Generic method call
ov dbus introspect <image> <dest> <path> # Service introspection
ov cmd/ov tmux cmd/ov record cmd → sendContainerNotification() → ov dbus notify → org.freedesktop.Notifications.Notify → swaync/mako → desktop popup
For notifications to work, the image needs:
dbus layer — D-Bus session bus (this layer)swaync layer — notification daemon (or mako for niri)ov layer — in-container ov binary for native D-Bus (falls back to gdbus from glib2)ov dbus provides explanatory errors when D-Bus is unavailable:
dbus layerswayncov binary → falls back to gdbus, warns about adding ov layerov status ProbeThe dbus probe checks:
dbus-daemon process is runningShows as dbus:ok (notify:swaync) in ov status detail view.
sway in all desktop images/ov-layers:supervisord -- process manager dependency/ov-layers:sway -- primary consumer (Sway depends on dbus)/ov-layers:swaync -- notification daemon (depends on dbus)/ov-layers:libnotify -- notify-send CLI tool (depends on dbus)/ov-layers:ov -- in-container ov binary for native D-Bus/ov:dbus — Native Go D-Bus commands (notify, list, call, introspect)Use when the user asks about:
DBUS_SESSION_BUS_ADDRESS environment variableov dbus commands (notify, call, list, introspect)