Difference between revisions of "D-Bus"

From ArchWiki
Jump to: navigation, search
m (Installation: update for dbus replacing dbus-core)
(Starting the user session: 30-dbus is no longer needed: https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/dbus&id=fd4806f9bd8eaac581929a6cd276544713ffe0af)
Line 11: Line 11:
  
 
==Starting the user session==
 
==Starting the user session==
[[GNOME|gnome-session]], [[KDE|startkde]] and [[Xfce|startxfce4]] will start a D-Bus session automatically if it isn't already running. The template for {{ic|~/.xinitrc}} ({{ic|/etc/skel/.xinitrc}}) will do the same since it sources scripts in {{ic|/etc/X11/xinit/xinitrc.d/}}, including 30-dbus. Make sure that the code is included in your [[xinitrc|~/.xinitrc]]:
+
[[GNOME|gnome-session]], [[KDE|startkde]] and [[Xfce|startxfce4]] will start a D-Bus session automatically if one is not already running. The skeleton file for {{ic|~/.xinitrc}} ({{ic|/etc/skel/.xinitrc}}) will do the same. Make sure that your {{ic|~/.[[xinitrc]]}} is based on the skeleton file {{ic|/etc/skel/.xinitrc}}.
 
+
{{hc|~/.xinitrc|<nowiki>#!/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</nowiki>}}
+
  
 
==See also==
 
==See also==
 
*[http://www.freedesktop.org/wiki/Software/dbus D-Bus page at freedesktop.org]
 
*[http://www.freedesktop.org/wiki/Software/dbus D-Bus page at freedesktop.org]
 
*[http://www.freedesktop.org/wiki/IntroductionToDBus Introduction to D-Bus] on freedesktop.org
 
*[http://www.freedesktop.org/wiki/IntroductionToDBus Introduction to D-Bus] on freedesktop.org

Revision as of 22:28, 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 one is not already running. The skeleton file for ~/.xinitrc (/etc/skel/.xinitrc) will do the same. Make sure that your ~/.xinitrc is based on the skeleton file /etc/skel/.xinitrc.

See also