[e8e3312d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[e8e3312d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[bf325a39] | 7 | <!ENTITY dbus-download-http "http://dbus.freedesktop.org/releases/dbus/dbus-&dbus-version;.tar.gz">
|
---|
[30d0aef] | 8 | <!ENTITY dbus-download-ftp " ">
|
---|
[3b4224f] | 9 | <!ENTITY dbus-md5sum "e912e930f249454752512aa7ac864d43">
|
---|
[53dd18f1] | 10 | <!ENTITY dbus-size "1.9 MB">
|
---|
[3b4224f] | 11 | <!ENTITY dbus-buildsize "24 MB (70 MB for the tests)">
|
---|
| 12 | <!ENTITY dbus-time "0.4 SBU (add 2 SBU for the tests)">
|
---|
[e8e3312d] | 13 | ]>
|
---|
| 14 |
|
---|
[54666831] | 15 | <sect1 id="dbus" xreflabel="D-Bus-&dbus-version;">
|
---|
[e8e3312d] | 16 | <?dbhtml filename="dbus.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[54666831] | 23 | <title>D-Bus-&dbus-version;</title>
|
---|
[e8e3312d] | 24 |
|
---|
[54666831] | 25 | <indexterm zone="dbus">
|
---|
| 26 | <primary sortas="a-D-Bus">D-Bus</primary>
|
---|
[e8e3312d] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[54666831] | 30 | <title>Introduction to D-Bus</title>
|
---|
[e8e3312d] | 31 |
|
---|
[0b83a69] | 32 | <para>
|
---|
[108beaf] | 33 | <application>D-Bus</application> is a message bus system, a simple way
|
---|
| 34 | for applications to talk to one another.
|
---|
| 35 | <application>D-Bus</application> supplies both a system daemon (for
|
---|
| 36 | events such as <quote>new hardware device added</quote> or <quote>printer
|
---|
| 37 | queue changed</quote>) and a per-user-login-session daemon (for general
|
---|
| 38 | IPC needs among user applications). Also, the message bus is built on top
|
---|
| 39 | of a general one-to-one message passing framework, which can be used by
|
---|
| 40 | any two applications to communicate directly (without going through the
|
---|
| 41 | message bus daemon).
|
---|
[0b83a69] | 42 | </para>
|
---|
[e8e3312d] | 43 |
|
---|
[730a1810] | 44 | &lfs79_checked;
|
---|
[482477c] | 45 |
|
---|
[e8e3312d] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[0b83a69] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&dbus-download-http;"/>
|
---|
| 51 | </para>
|
---|
[e8e3312d] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[0b83a69] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&dbus-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[e8e3312d] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[0b83a69] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &dbus-md5sum;
|
---|
| 61 | </para>
|
---|
[e8e3312d] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[0b83a69] | 64 | <para>
|
---|
| 65 | Download size: &dbus-size;
|
---|
| 66 | </para>
|
---|
[e8e3312d] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[0b83a69] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &dbus-buildsize;
|
---|
| 71 | </para>
|
---|
[e8e3312d] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[0b83a69] | 74 | <para>
|
---|
| 75 | Estimated build time: &dbus-time;
|
---|
| 76 | </para>
|
---|
[e8e3312d] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[02e742b] | 80 | <bridgehead renderas="sect3">D-Bus Dependencies</bridgehead>
|
---|
[e8e3312d] | 81 |
|
---|
[54666831] | 82 | <!--
|
---|
[bf325a39] | 83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b6a2a0e] | 84 | <para role="required">
|
---|
[54666831] | 85 | <xref linkend="expat"/>
|
---|
| 86 | </para>
|
---|
| 87 | -->
|
---|
| 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 89 | <para role="recommended">
|
---|
| 90 | <xref linkend="xorg7-lib"/> (for <command>dbus-launch</command> program)
|
---|
[0b83a69] | 91 | </para>
|
---|
[adfdc8b] | 92 |
|
---|
[e8e3312d] | 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b6a2a0e] | 94 | <para role="optional">
|
---|
[f1d25d2] | 95 | For the tests:
|
---|
[cafc6c84] | 96 | <xref linkend="dbus-glib"/>,
|
---|
[c358685] | 97 | <xref linkend="dbus-python"/>,
|
---|
| 98 | <xref linkend="pygobject2"/>, and
|
---|
| 99 | <xref linkend="valgrind"/>;
|
---|
| 100 |
|
---|
| 101 | for documentation:
|
---|
| 102 | <xref linkend="doxygen"/>,
|
---|
| 103 | <xref linkend="xmlto"/>,
|
---|
| 104 | <ulink url="https://pypi.python.org/pypi/mallard-ducktype">Ducktype</ulink>,
|
---|
| 105 | and
|
---|
| 106 | <ulink url="http://ftp.gnome.org/pub/gnome/sources/yelp-tools/">Yelp Tools</ulink>
|
---|
[0b83a69] | 107 | </para>
|
---|
[c45cb57] | 108 |
|
---|
[1039de3] | 109 | <para condition="html" role="usernotes">User Notes:
|
---|
[0b83a69] | 110 | <ulink url="&blfs-wiki;/dbus"/>
|
---|
| 111 | </para>
|
---|
[e8e3312d] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="installation">
|
---|
[02e742b] | 115 | <title>Installation of D-Bus</title>
|
---|
[e8e3312d] | 116 |
|
---|
[0b83a69] | 117 | <para>
|
---|
[ef52ec2] | 118 | If they do not already exist,
|
---|
| 119 | as the <systemitem class="username">root</systemitem> user, create a
|
---|
[54666831] | 120 | system user and group to handle the system message bus activity:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen role="root"><userinput>groupadd -g 18 messagebus &&
|
---|
| 124 | useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
|
---|
| 125 | -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | Install <application>D-Bus</application> by running the following
|
---|
[108beaf] | 129 | commands (you may wish to review the output from <command>./configure
|
---|
| 130 | --help</command> first and add any desired parameters to the
|
---|
| 131 | <command>configure</command> command shown below):
|
---|
[0b83a69] | 132 | </para>
|
---|
[e8e3312d] | 133 |
|
---|
[8f7569b] | 134 | <screen><userinput>./configure --prefix=/usr \
|
---|
[54666831] | 135 | --sysconfdir=/etc \
|
---|
| 136 | --localstatedir=/var \
|
---|
[108beaf] | 137 | --disable-doxygen-docs \
|
---|
[6092d19] | 138 | --disable-xml-docs \
|
---|
[108beaf] | 139 | --disable-static \
|
---|
[4532b2f] | 140 | --disable-systemd \
|
---|
| 141 | --without-systemdsystemunitdir \
|
---|
| 142 | --with-console-auth-dir=/run/console/ \
|
---|
| 143 | --docdir=/usr/share/doc/dbus-&dbus-version; &&
|
---|
[e8e3312d] | 144 | make</userinput></screen>
|
---|
| 145 |
|
---|
[0b83a69] | 146 | <para>
|
---|
| 147 | See below for test instructions.
|
---|
| 148 | </para>
|
---|
[c45cb57] | 149 |
|
---|
[0b83a69] | 150 | <para>
|
---|
| 151 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
[e8e3312d] | 153 |
|
---|
[108beaf] | 154 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[b6a2a0e] | 155 |
|
---|
[bf8eb65] | 156 | <para>
|
---|
| 157 | If you are using a DESTDIR install,
|
---|
| 158 | <command>dbus-daemon-launch-helper</command> needs to be fixed
|
---|
| 159 | afterwards. Issue, as <systemitem class="username">root</systemitem>
|
---|
| 160 | user:
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <screen role="root"><userinput>chown -v root:messagebus /usr/libexec/dbus-daemon-launch-helper &&
|
---|
| 164 | chmod -v 4750 /usr/libexec/dbus-daemon-launch-helper</userinput></screen>
|
---|
| 165 |
|
---|
[0b83a69] | 166 | <para>
|
---|
[54666831] | 167 | If you are still building your system in chroot or you did not start the
|
---|
| 168 | daemon yet, but you want to compile some packages that require
|
---|
| 169 | <application>D-Bus</application>, generate
|
---|
| 170 | <application>D-Bus</application> UUID to avoid warnings when compiling
|
---|
| 171 | some packages with the following command as the
|
---|
[3bbf74c5] | 172 | <systemitem class="username">root</systemitem> user:
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[54666831] | 175 | <screen role="root"><userinput>dbus-uuidgen --ensure</userinput></screen>
|
---|
| 176 |
|
---|
[3bbf74c5] | 177 | <para>
|
---|
[108beaf] | 178 | The dbus tests cannot be run until after <xref linkend="dbus-glib"/> has
|
---|
| 179 | been installed. They must be run as an unprivileged user from a local
|
---|
| 180 | session with bus address. Tests fail through ssh. If you want to run only
|
---|
| 181 | the unit tests, replace, below, <parameter>--enable-tests</parameter> by
|
---|
| 182 | <parameter>--enable-embedded-tests</parameter>, otherwise, <xref
|
---|
| 183 | linkend="dbus-python"/> has to be installed, before. The tests require
|
---|
| 184 | passing additional parameters to <command>configure</command> and
|
---|
| 185 | exposing additional functionality in the binaries. These interfaces are
|
---|
| 186 | not intended to be used in a production build of
|
---|
| 187 | <application>D-Bus</application>. If you would like to run the tests,
|
---|
[6092d19] | 188 | issue the following commands (for the tests, you don't need to build the
|
---|
| 189 | docs):
|
---|
[0b83a69] | 190 | </para>
|
---|
[0d7900a] | 191 |
|
---|
[6092d19] | 192 | <screen><userinput>make distclean &&
|
---|
| 193 | ./configure --enable-tests \
|
---|
| 194 | --enable-asserts \
|
---|
| 195 | --disable-doxygen-docs \
|
---|
| 196 | --disable-xml-docs &&
|
---|
| 197 | make &&
|
---|
[02fc2ae] | 198 | make check</userinput></screen>
|
---|
[c45cb57] | 199 |
|
---|
[53dd18f1] | 200 | <para>
|
---|
| 201 | The <quote>estimated disk space required</quote> reported above is
|
---|
| 202 | obtained in a build using the switches disabling documents generation.
|
---|
| 203 | This and the use of the <command>make distclean</command> command implies
|
---|
| 204 | that the build directory size is smaller than the one for a full build
|
---|
[2cd6717] | 205 | with documents generated. There are two errors, for unknown reasons.
|
---|
[53dd18f1] | 206 | </para>
|
---|
[2cd6717] | 207 | <!--
|
---|
[c802d3c] | 208 | <para>
|
---|
[4947a7a] | 209 | If <command>run-test.sh</command> fails, it can be disabled with the
|
---|
| 210 | following sed, before running the commands for the tests:
|
---|
[c802d3c] | 211 | </para>
|
---|
| 212 |
|
---|
[2cd6717] | 213 | <screen><userinput>sed -i -e 's:run-test.sh:$(NULL):g' test/name-test/Makefile.in</userinput></screen>-->
|
---|
[c802d3c] | 214 |
|
---|
[54666831] | 215 | <para>
|
---|
[bf8eb65] | 216 | There has been a report that the tests may fail if running inside a
|
---|
| 217 | Midnight Commander shell. You may get out-of-memory error messages when
|
---|
| 218 | running the tests. These are normal and can be safely ignored.
|
---|
[54666831] | 219 | </para>
|
---|
[e8e3312d] | 220 |
|
---|
| 221 | </sect2>
|
---|
| 222 |
|
---|
| 223 | <sect2 role="commands">
|
---|
| 224 | <title>Command Explanations</title>
|
---|
| 225 |
|
---|
[108beaf] | 226 | <para>
|
---|
| 227 | <parameter>--disable-doxygen-docs</parameter>: This switch disables
|
---|
[6092d19] | 228 | doxygen documentation build and install, if you have
|
---|
[108beaf] | 229 | <application>doxygen</application> installed. Delete, if
|
---|
| 230 | <application>doxygen</application> is installed and you wish to build and
|
---|
| 231 | install them.
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
[6092d19] | 234 | <para>
|
---|
| 235 | <parameter>--disable-xml-docs</parameter>: This switch disables html
|
---|
| 236 | documentation build and install, if you have
|
---|
| 237 | <application>xmlto</application> installed. Delete, if
|
---|
| 238 | <application>xmlto</application> is installed and you wish to build and
|
---|
| 239 | install them.
|
---|
| 240 | </para>
|
---|
| 241 |
|
---|
[4532b2f] | 242 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 243 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 244 |
|
---|
[54666831] | 245 | <para>
|
---|
| 246 | <parameter>--disable-systemd</parameter>: This switch disables systemd
|
---|
[108beaf] | 247 | support in <application>D-Bus</application>.
|
---|
[54666831] | 248 | </para>
|
---|
| 249 |
|
---|
[4532b2f] | 250 | <para>
|
---|
| 251 | <parameter>--without-systemdsystemunitdir</parameter>: This switch
|
---|
| 252 | prevents installation of systemd unit files.
|
---|
| 253 | </para>
|
---|
| 254 |
|
---|
| 255 | <para>
|
---|
| 256 | <parameter>--with-console-auth-dir=/run/console/</parameter>: This
|
---|
| 257 | parameter specifies location of the
|
---|
| 258 | <application>ConsoleKit</application> auth dir.
|
---|
| 259 | </para>
|
---|
[0b83a69] | 260 |
|
---|
| 261 | <para>
|
---|
[e5347c36] | 262 | <parameter>--enable-tests</parameter>: Build extra parts of the code to
|
---|
[4947a7a] | 263 | support all tests. Configure will end with a NOTE warning about increased
|
---|
| 264 | size of libraries and decreased security.
|
---|
| 265 | </para>
|
---|
| 266 |
|
---|
| 267 | <para>
|
---|
| 268 | <parameter>--enable-embedded-tests</parameter>: Build extra parts of the
|
---|
| 269 | code to support only unit tests. Configure will end with a NOTE warning
|
---|
| 270 | about increased size of libraries and decreased security.
|
---|
[0b83a69] | 271 | </para>
|
---|
| 272 |
|
---|
| 273 | <para>
|
---|
[e5347c36] | 274 | <parameter>--enable-asserts</parameter>: Enable debugging code to run
|
---|
| 275 | assertions for statements normally assumed to be true. This prevents a
|
---|
| 276 | warning that '<parameter>--enable-tests</parameter>' on its own is only
|
---|
| 277 | useful for profiling and might not give true results for all tests, but
|
---|
| 278 | adds its own NOTE that this should not be used in a production build.
|
---|
[0b83a69] | 279 | </para>
|
---|
[30d0aef] | 280 |
|
---|
[e8e3312d] | 281 | </sect2>
|
---|
| 282 |
|
---|
| 283 | <sect2 role="configuration">
|
---|
| 284 | <title>Configuring dbus</title>
|
---|
| 285 |
|
---|
| 286 | <sect3 id="dbus-config">
|
---|
| 287 | <title>Config Files</title>
|
---|
[0b83a69] | 288 |
|
---|
| 289 | <para>
|
---|
| 290 | <filename>/etc/dbus-1/session.conf</filename>,
|
---|
| 291 | <filename>/etc/dbus-1/system.conf</filename> and
|
---|
| 292 | <filename>/etc/dbus-1/system.d/*</filename>
|
---|
| 293 | </para>
|
---|
[e8e3312d] | 294 |
|
---|
[54666831] | 295 | <indexterm zone="dbus dbus-config">
|
---|
[e8e3312d] | 296 | <primary sortas="e-etc-dbus-1-session.conf">/etc/dbus-1/session.conf</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 |
|
---|
[54666831] | 299 | <indexterm zone="dbus dbus-config">
|
---|
[e8e3312d] | 300 | <primary sortas="e-etc-dbus-1/system.conf">/etc/dbus-1/system.conf</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 |
|
---|
[54666831] | 303 | <indexterm zone="dbus dbus-config">
|
---|
[c45cb57] | 304 | <primary sortas="e-etc-dbus-1-system.d-star">/etc/dbus-1/system.d/*</primary>
|
---|
[e8e3312d] | 305 | </indexterm>
|
---|
| 306 |
|
---|
| 307 | </sect3>
|
---|
| 308 |
|
---|
[e9efab0b] | 309 | <sect3 id="dbus-session-config" xreflabel="D-Bus custom services directory">
|
---|
| 310 | <title>Configuration Information</title>
|
---|
[e8e3312d] | 311 |
|
---|
[0b83a69] | 312 | <para>
|
---|
| 313 | The configuration files listed above should probably not be
|
---|
| 314 | modified. If changes are required, you should create
|
---|
| 315 | <filename>/etc/dbus-1/session-local.conf</filename> and/or
|
---|
| 316 | <filename>/etc/dbus-1/system-local.conf</filename> and make any
|
---|
| 317 | desired changes to these files.
|
---|
| 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
| 321 | If any packages install a
|
---|
| 322 | <application>D-Bus</application> <filename>.service</filename>
|
---|
| 323 | file outside of the standard <filename
|
---|
| 324 | class="directory">/usr/share/dbus-1/services</filename> directory,
|
---|
| 325 | that directory should be added to the local session configuration.
|
---|
| 326 | For instance, <filename
|
---|
| 327 | class="directory">/usr/local/share/dbus-1/services</filename> can
|
---|
| 328 | be added by performing the following commands as the
|
---|
| 329 | <systemitem class="username">root</systemitem> user:
|
---|
| 330 | </para>
|
---|
[57aa7a28] | 331 |
|
---|
| 332 | <screen role="root"><userinput>cat > /etc/dbus-1/session-local.conf << "EOF"
|
---|
| 333 | <literal><!DOCTYPE busconfig PUBLIC
|
---|
| 334 | "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
---|
| 335 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
---|
| 336 | <busconfig>
|
---|
| 337 |
|
---|
| 338 | <!-- Search for .service files in /usr/local -->
|
---|
| 339 | <servicedir>/usr/local/share/dbus-1/services</servicedir>
|
---|
| 340 |
|
---|
| 341 | </busconfig></literal>
|
---|
| 342 | EOF</userinput></screen>
|
---|
| 343 |
|
---|
[e8e3312d] | 344 | </sect3>
|
---|
| 345 |
|
---|
| 346 | <sect3 id="dbus-init">
|
---|
[54666831] | 347 | <title>Boot Script</title>
|
---|
[e8e3312d] | 348 |
|
---|
[0b83a69] | 349 | <para>
|
---|
[54666831] | 350 | To automatically start <command>dbus-daemon</command> when the
|
---|
| 351 | system is rebooted, install the
|
---|
| 352 | <filename>/etc/rc.d/init.d/dbus</filename> bootscript from the
|
---|
| 353 | <xref linkend="bootscripts"/> package.
|
---|
| 354 | </para>
|
---|
| 355 |
|
---|
| 356 | <indexterm zone="dbus dbus-init">
|
---|
| 357 | <primary sortas="f-dbus">dbus</primary>
|
---|
| 358 | </indexterm>
|
---|
| 359 |
|
---|
| 360 | <screen role="root"><userinput>make install-dbus</userinput></screen>
|
---|
| 361 |
|
---|
| 362 | <para>
|
---|
| 363 | Note that this boot script only starts the system-wide
|
---|
| 364 | <application>D-Bus</application> daemon. Each user requiring access to
|
---|
| 365 | <application>D-Bus</application> services will also need to run a
|
---|
| 366 | session daemon as well. There are many methods you can use to start a
|
---|
[0b83a69] | 367 | session daemon using the <command>dbus-launch</command> command. Review
|
---|
| 368 | the <command>dbus-launch</command> man page for details about the
|
---|
| 369 | available parameters and options. Here are some suggestions and
|
---|
| 370 | examples:
|
---|
| 371 | </para>
|
---|
[3565e02] | 372 |
|
---|
| 373 | <itemizedlist spacing="compact">
|
---|
| 374 | <listitem>
|
---|
[0b83a69] | 375 | <para>
|
---|
| 376 | Add <command>dbus-launch</command> to the line in the
|
---|
| 377 | <filename>~/.xinitrc</filename> file that starts your graphical
|
---|
| 378 | desktop environment.
|
---|
| 379 | </para>
|
---|
[3565e02] | 380 | </listitem>
|
---|
| 381 | <listitem>
|
---|
[0b83a69] | 382 | <para>
|
---|
| 383 | If you use <command>xdm</command> or some other display manager
|
---|
| 384 | that calls the <filename>~/.xsession</filename> file, you can add
|
---|
| 385 | <command>dbus-launch</command> to the line in your
|
---|
| 386 | <filename>~/.xsession</filename> file that starts your graphical
|
---|
| 387 | desktop environment. The syntax would be similar to the example in
|
---|
| 388 | the <filename>~/.xinitrc</filename> file.
|
---|
| 389 | </para>
|
---|
[3565e02] | 390 | </listitem>
|
---|
| 391 | <listitem>
|
---|
[0b83a69] | 392 | <para>
|
---|
| 393 | The examples shown previously use
|
---|
| 394 | <command>dbus-launch</command> to specify a program to be run. This
|
---|
| 395 | has the benefit (when also using the
|
---|
| 396 | <parameter>--exit-with-session</parameter> parameter) of stopping the
|
---|
| 397 | session daemon when the specified program is stopped. You can also
|
---|
| 398 | start the session daemon in your system or personal startup scripts
|
---|
| 399 | by adding the following lines:
|
---|
| 400 | </para>
|
---|
[3565e02] | 401 |
|
---|
[02e742b] | 402 | <screen><userinput><literal># Start the D-Bus session daemon
|
---|
[3565e02] | 403 | eval `dbus-launch`
|
---|
| 404 | export DBUS_SESSION_BUS_ADDRESS</literal></userinput></screen>
|
---|
| 405 |
|
---|
[0b83a69] | 406 | <para>
|
---|
| 407 | This method will not stop the session daemon when you exit
|
---|
| 408 | your shell, therefore you should add the following line to your
|
---|
| 409 | <filename>~/.bash_logout</filename> file:
|
---|
| 410 | </para>
|
---|
[3565e02] | 411 |
|
---|
[02e742b] | 412 | <screen><userinput><literal># Kill the D-Bus session daemon
|
---|
[3565e02] | 413 | kill $DBUS_SESSION_BUS_PID</literal></userinput></screen>
|
---|
[bccbdaea] | 414 | </listitem>
|
---|
[4ec808b] | 415 |
|
---|
[3565e02] | 416 | <listitem>
|
---|
[0b83a69] | 417 | <para>
|
---|
| 418 | A hint has been written that provides ways to start scripts
|
---|
| 419 | using the KDM session manager of KDE. The concepts in this hint could
|
---|
| 420 | possibly be used with other session managers as well. The hint is
|
---|
| 421 | located at <ulink
|
---|
| 422 | url="&hints-root;/downloads/files/execute-session-scripts-using-kdm.txt"/>.
|
---|
[c45cb57] | 423 | </para>
|
---|
[3565e02] | 424 | </listitem>
|
---|
[c45cb57] | 425 |
|
---|
[3565e02] | 426 | </itemizedlist>
|
---|
| 427 |
|
---|
[e8e3312d] | 428 | </sect3>
|
---|
| 429 |
|
---|
| 430 | </sect2>
|
---|
| 431 |
|
---|
| 432 | <sect2 role="content">
|
---|
| 433 | <title>Contents</title>
|
---|
| 434 |
|
---|
| 435 | <segmentedlist>
|
---|
| 436 | <segtitle>Installed Programs</segtitle>
|
---|
[54666831] | 437 | <segtitle>Installed Library</segtitle>
|
---|
[e8e3312d] | 438 | <segtitle>Installed Directories</segtitle>
|
---|
| 439 |
|
---|
| 440 | <seglistitem>
|
---|
[0b83a69] | 441 | <seg>
|
---|
[54666831] | 442 | dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
|
---|
[c358685] | 443 | dbus-run-session, dbus-send, dbus-test-tool,
|
---|
[2cd6717] | 444 | dbus-update-activation-environment, and dbus-uuidgen
|
---|
[0b83a69] | 445 | </seg>
|
---|
| 446 | <seg>
|
---|
[54666831] | 447 | libdbus-1.so
|
---|
[0b83a69] | 448 | </seg>
|
---|
| 449 | <seg>
|
---|
[e20b59be] | 450 | /etc/dbus-1,
|
---|
[79ba2ea] | 451 | /usr/{include,lib}/dbus-1.0,
|
---|
[e20b59be] | 452 | /usr/share/dbus-1,
|
---|
| 453 | /usr/share/doc/dbus-&dbus-version;, and
|
---|
[79ba2ea] | 454 | /var/{lib,run}/dbus
|
---|
[0b83a69] | 455 | </seg>
|
---|
[e8e3312d] | 456 | </seglistitem>
|
---|
| 457 | </segmentedlist>
|
---|
| 458 |
|
---|
| 459 | <variablelist>
|
---|
| 460 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 461 | <?dbfo list-presentation="list"?>
|
---|
| 462 | <?dbhtml list-presentation="table"?>
|
---|
| 463 |
|
---|
[54666831] | 464 | <varlistentry id="dbus-cleanup-sockets">
|
---|
| 465 | <term><command>dbus-cleanup-sockets</command></term>
|
---|
| 466 | <listitem>
|
---|
| 467 | <para>
|
---|
| 468 | is used to clean up leftover sockets in a directory.
|
---|
| 469 | </para>
|
---|
| 470 | <indexterm zone="dbus dbus-cleanup-sockets">
|
---|
| 471 | <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
|
---|
| 472 | </indexterm>
|
---|
| 473 | </listitem>
|
---|
| 474 | </varlistentry>
|
---|
| 475 |
|
---|
| 476 | <varlistentry id="dbus-daemon">
|
---|
| 477 | <term><command>dbus-daemon</command></term>
|
---|
| 478 | <listitem>
|
---|
| 479 | <para>
|
---|
| 480 | is the <application>D-Bus</application> message bus daemon.
|
---|
| 481 | </para>
|
---|
| 482 | <indexterm zone="dbus dbus-daemon">
|
---|
| 483 | <primary sortas="b-dbus-daemon">dbus-daemon</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
| 487 |
|
---|
| 488 | <varlistentry id="dbus-launch">
|
---|
[e8e3312d] | 489 | <term><command>dbus-launch</command></term>
|
---|
| 490 | <listitem>
|
---|
[0b83a69] | 491 | <para>
|
---|
| 492 | is used to start <command>dbus-daemon</command> from a shell
|
---|
| 493 | script. It would normally be called from a user's login
|
---|
| 494 | scripts.
|
---|
| 495 | </para>
|
---|
[54666831] | 496 | <indexterm zone="dbus dbus-launch">
|
---|
| 497 | <primary sortas="b-dbus-launch">dbus-launch</primary>
|
---|
| 498 | </indexterm>
|
---|
| 499 | </listitem>
|
---|
| 500 | </varlistentry>
|
---|
| 501 |
|
---|
| 502 | <varlistentry id="dbus-monitor">
|
---|
| 503 | <term><command>dbus-monitor</command></term>
|
---|
| 504 | <listitem>
|
---|
| 505 | <para>
|
---|
| 506 | is used to monitor messages going through a
|
---|
| 507 | <application>D-Bus</application> message bus.
|
---|
| 508 | </para>
|
---|
| 509 | <indexterm zone="dbus dbus-monitor">
|
---|
| 510 | <primary sortas="b-dbus-monitor">dbus-monitor</primary>
|
---|
| 511 | </indexterm>
|
---|
| 512 | </listitem>
|
---|
| 513 | </varlistentry>
|
---|
| 514 |
|
---|
| 515 | <varlistentry id="dbus-run-session">
|
---|
| 516 | <term><command>dbus-run-session</command></term>
|
---|
| 517 | <listitem>
|
---|
| 518 | <para>
|
---|
| 519 | start a process as a new <application>D-Bus</application> session.
|
---|
| 520 | </para>
|
---|
| 521 | <indexterm zone="dbus dbus-run-session">
|
---|
| 522 | <primary sortas="b-dbus-run-session">dbus-run-session</primary>
|
---|
| 523 | </indexterm>
|
---|
| 524 | </listitem>
|
---|
| 525 | </varlistentry>
|
---|
| 526 |
|
---|
| 527 | <varlistentry id="dbus-send">
|
---|
| 528 | <term><command>dbus-send</command></term>
|
---|
| 529 | <listitem>
|
---|
| 530 | <para>
|
---|
| 531 | is used to send a message to a <application>D-Bus</application>
|
---|
| 532 | message bus.
|
---|
| 533 | </para>
|
---|
| 534 | <indexterm zone="dbus dbus-send">
|
---|
| 535 | <primary sortas="b-dbus-send">dbus-send</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
| 539 |
|
---|
[c358685] | 540 | <varlistentry id="dbus-test-tool">
|
---|
| 541 | <term><command>dbus-test-tool</command></term>
|
---|
| 542 | <listitem>
|
---|
| 543 | <para>
|
---|
| 544 | <application>D-Bus</application> traffic generator and test tool; it
|
---|
| 545 | is a multi-purpose tool for debugging and profiling
|
---|
| 546 | <application>D-Bus</application>.
|
---|
| 547 | </para>
|
---|
| 548 | <indexterm zone="dbus dbus-test-tool">
|
---|
| 549 | <primary sortas="b-dbus-test-tool">dbus-test-tool</primary>
|
---|
| 550 | </indexterm>
|
---|
| 551 | </listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
| 554 | <varlistentry id="dbus-update-activation-environment">
|
---|
| 555 | <term><command>dbus-update-activation-environment</command></term>
|
---|
| 556 | <listitem>
|
---|
| 557 | <para>
|
---|
| 558 | update environment used for <application>D-Bus</application> session
|
---|
| 559 | services; it updates the list of environment variables used by
|
---|
| 560 | <command>dbus-daemon --session</command> when it activates session
|
---|
| 561 | services without using systemd.
|
---|
| 562 | </para>
|
---|
| 563 | <indexterm zone="dbus dbus-update-activation-environment">
|
---|
| 564 | <primary sortas="b-dbus-update-activation-environment">
|
---|
| 565 | dbus-update-activation-environment</primary>
|
---|
| 566 | </indexterm>
|
---|
| 567 | </listitem>
|
---|
| 568 | </varlistentry>
|
---|
| 569 |
|
---|
[54666831] | 570 | <varlistentry id="dbus-uuidgen">
|
---|
| 571 | <term><command>dbus-uuidgen</command></term>
|
---|
| 572 | <listitem>
|
---|
| 573 | <para>
|
---|
| 574 | is used to generate a universally unique ID.
|
---|
| 575 | </para>
|
---|
| 576 | <indexterm zone="dbus dbus-uuidgen">
|
---|
| 577 | <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
|
---|
| 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
| 581 |
|
---|
| 582 | <varlistentry id="libdbus-1">
|
---|
| 583 | <term><filename class="libraryfile">libdbus-1.so</filename></term>
|
---|
| 584 | <listitem>
|
---|
| 585 | <para>
|
---|
| 586 | contains the API functions used by the
|
---|
| 587 | <application>D-Bus</application> message daemon.
|
---|
| 588 | <application>D-Bus</application> is first a library that provides
|
---|
| 589 | one-to-one communication between any two applications;
|
---|
| 590 | <command>dbus-daemon</command> is an application that uses this
|
---|
| 591 | library to implement a message bus daemon.
|
---|
| 592 | </para>
|
---|
| 593 | <indexterm zone="dbus libdbus-1">
|
---|
| 594 | <primary sortas="c-libdbus-1">libdbus-1.so</primary>
|
---|
[e8e3312d] | 595 | </indexterm>
|
---|
| 596 | </listitem>
|
---|
| 597 | </varlistentry>
|
---|
| 598 |
|
---|
| 599 | </variablelist>
|
---|
| 600 |
|
---|
| 601 | </sect2>
|
---|
| 602 |
|
---|
| 603 | </sect1>
|
---|
[0d7900a] | 604 |
|
---|