Difference between revisions of "D-Bus"

From ArchWiki
Jump to: navigation, search
m (Installation: update for dbus replacing dbus-core)
Line 8: Line 8:
 
[[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==
Because [[systemd]] depends on {{Pkg|dbus-core}}, D-Bus is enabled automatically when using systemd. The package {{pkg|dbus}} can optionally be [[pacman|installed]] from the [[Official Repositories|official repositories]] if you want the [[xinitrc]] files for D-Bus.
+
D-Bus is enabled automatically when using [[systemd]] because {{Pkg|dbus}} is a dependency of systemd.
  
 
==Starting the user session==
 
==Starting the user session==

Revision as of 22:20, 5 December 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 is enabled automatically when using systemd because dbus is a dependency of systemd.

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