D-Bus

D-Bus is an interprocess communication (IPC) system for software applications; software makes use of D-Bus to communicate between services.

USE flags
Portage knows the global  USE flag for enabling support for D-Bus in other packages. Enabling this flag will pull in automatically. This is the default for desktop profiles:

Emerge
After setting at least the  global USE flag be sure update the system using   option so Portage will be sure to notice the changes:

Configuration
The main configuration files include:


 * for the system bus
 * for the session bus

OpenRC
After configuration step, start D-Bus with:

To start D-Bus at boot time, add it the default run level:

Usage
Some useful commands are:


 * dbus-monitor --system - To monitor the activities in the system bus.
 * dbus-monitor --session - To monitor the activities in the session bus.
 * dbus-send  - To send a message. See the dbus-send man page ( man dbus-send ) for more information.

Troubleshooting
Use the dbus-monitor command to monitor the buses. Errors are also redirected to the syslog.

External resources

 * An Introduction to D-Bus (freedesktop.org Wiki)
 * A D-Bus tutorial (freedesktop.org)