Difference between revisions of "D-Bus"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:Daemons and system services]]
[[Category:Daemons and system services]]
{{Article summary start}}
{{Article summary start}}
{{Article summary text|Installation and configuration of D-Bus.}}
{{Article summary text|Installation and configuration of D-Bus.}}

Revision as of 13:22, 13 June 2012

zh-CN:D-Bus Template:Article summary start Template:Article summary text Template:Article summary end D-Bus is a message bus system that provides an easy way for inter-process communication. It consists of a daemon, which can be run both system-wide and for each user session, and a set of libraries to allow applications to use D-Bus.


D-Bus can be installed with the dbus package from the Official Repositories. Since D-Bus is required by large number of applications, it is likely that you already have it installed.

To start the dbus daemon manually, see the daemons article. It can also be added to your DAEMONS array so it starts automatically on boot.

Starting the user session

gnome-session, startkde and startxfce4 will start a D-Bus session automatically if it isn't already running. The template for ~/.xinitrc (/etc/skel/.xinitrc) will do the same since it sources scripts in /etc/X11/xinit/xinitrc.d/, including 30-dbus. Make sure that the code is included in your ~/.xinitrc:


# Source scripts in /etc/X11/xinit/xinitrc.d/
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
    unset f

exec $your_window_manager

See also