Difference between revisions of "D-Bus"

From ArchWiki
Jump to: navigation, search
m (Installation: fix broken anchor links; get rid of rc.conf stuff)
Line 7: Line 7:
 
[[Wikipedia:D-Bus|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.
 
[[Wikipedia:D-Bus|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.
 
==Installation==
 
==Installation==
D-Bus can be [[pacman|installed]] with the {{Pkg|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.
+
D-Bus can be [[pacman|installed]] with the {{Pkg|dbus}} package from the [[Official Repositories|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#Performing daemon actions manually|daemons]] article. It can also be added to your [[daemons#Starting on Boot|DAEMONS array]] so it starts automatically on boot.
+
To start the {{ic|dbus}} service manually, see the [[Daemons#Starting_manually]] article. It can also be configured to [[Daemons#Starting on boot|start automatically on boot]].
  
 
==Starting the user session==
 
==Starting the user session==

Revision as of 20:30, 31 October 2012

Summary help replacing me
Installation and configuration of D-Bus.

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.

Installation

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 service manually, see the Daemons#Starting_manually article. It can also be configured to start 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:

~/.xinitrc
#!/bin/sh

# 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"
    done
    unset f
fi

exec $your_window_manager

See also