Difference between revisions of "D-Bus"

From ArchWiki
Jump to: navigation, search
(Installation)
(Installation)
Line 6: Line 6:
 
[[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==
{{Pkg|dbus}} can be installed from [extra]. Since D-Bus is required by large number of applications, it is likely that you already have it installed.
+
{{Pkg|dbus}} can be installed from [extra].  
 +
 
 +
{{bc|# pacman -S dbus}}
 +
 
 +
Since D-Bus is required by large number of applications, it is likely that you already have it installed.
  
 
To start it manually, see [[daemons#Performing daemon actions manually|the instructions in the daemon article]]. It can be added to your [[daemons#Starting on Boot|DAEMONS array]] so it starts automatically on boot.
 
To start it manually, see [[daemons#Performing daemon actions manually|the instructions in the daemon article]]. It can be added to your [[daemons#Starting on Boot|DAEMONS array]] so it starts automatically on boot.

Revision as of 21:18, 10 January 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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.

Installation

dbus can be installed from [extra].

# pacman -S dbus

Since D-Bus is required by large number of applications, it is likely that you already have it installed.

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

/etc/rc.conf
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
DAEMONS=(syslog-ng network crond dbus)

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