Difference between revisions of "Getting Started/Tutorials/D-Bus/Configuration"

Jump to: navigation, search
m (KDE-4.4 and TRUNK)
(SYSCONF_INSTALL_DIR)
Line 72: Line 72:
 
Then you must configure D-Bus to find these directories.
 
Then you must configure D-Bus to find these directories.
  
TO DO
+
For example for "SYSCONF_INSTALL_DIR=/etc/kde-4.4", first if the directory:
 +
 
 +
::/etc/kde-4.4/dbus-1/session.d
 +
 
 +
doesn't exist, create it.
 +
 
 +
Then add:<pre>
 +
  <includedir>/etc/kde-4.4/dbus-1/session.d</includedir>
 +
</pre>
 +
to your: "/etc/dbus-1/session-local.conf" file.
 +
 
 +
And add:<pre>
 +
  <includedir>/etc/kde-4.4/dbus-1/system.d</includedir>
 +
</pre>
 +
to your: "/etc/dbus-1/system-local.conf" file.
 +
 
 +
If you don't have the: "system-local.conf", create it as above.
  
 
==Work In Progress==
 
==Work In Progress==
  
 
My apologies!  The documentation for D-Bus is inadequate, but I am working on this.  Till then, ask on the KDE or KDE-Linux mailing lists.
 
My apologies!  The documentation for D-Bus is inadequate, but I am working on this.  Till then, ask on the KDE or KDE-Linux mailing lists.

Revision as of 20:39, 6 March 2010


Contents

Getting_Started/Tutorials/D-Bus/Configuration


Configuring for Services

All KDE-4 versions

If you instlled KDE in: "/usr/KDE-4, the D-Bus services will be installed in "/usr/KDE-4/share/dbus-1/services". D-Bus needs to find these services and use them.

If you only have one version of KDE installed and you normally use it, you need to add, for example:
  <servicedir>/usr/KDE-4/share/dbus-1/services</servicedir>

{use the actual path from your system}

to your: "/etc/dbus-1/session-local.conf" file.

If your system doesn't yet have that file, create it:

------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <servicedir>/usr/KDE-4/share/dbus-1/services</servicedir>
</busconfig>
------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------

{use the actual path from your system}

If you have installed an additional version of KDE-4 that you start with another user account according to the instructions for building KDE4.x, things are not as simple since you need to have the D-Bus services for that KDE-4 installation override the normal ones ONLY when using that user account. Instead of adding the path for the service directory to: "/etc/dbus-1/session-local.conf" file, add this link:
  <include ignore_missing="yes">$HOME/.config/dbus-1/session-local.conf</include>

Then create the above: "session-local.conf" file in the: "$HOME/.config/dbus-1" directory (which you will have to create).

KDE-4.4 and TRUNK

The current KDE-4.4 BRANCH and TRUNK also install a: "system-services" directory. If you installed KDE-4.4 in: "/usr/KDE-4.4, the D-Bus system services will be installed in "/usr/KDE-4.4/share/dbus-1/system-services". D-Bus needs to find these services and use them.

You need to add, for example:
  <servicedir>/usr/KDE-4.4/share/dbus-1/system-services</servicedir> 

{use the actual path from your system}

to your: "/etc/dbus-1/system-local.conf" file.

If your system doesn't yet have that file, create it:

------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
  <servicedir>/usr/KDE-4.4/share/dbus-1/system-services</servicedir>
</busconfig>
------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------

{use the actual path from your system}

NOTE: Although you can place multiple paths for system services in the "/etc/dbus-1/system-local.conf" file, if the services have the same name, only the last one will be used. This may or may not cause problems if you have multiple versions of KDE on your system.

SYSCONF_INSTALL_DIR

If you install two different versions of KDE-4 (including TRUNK) you will need to use the parameter: "SYSCONF_INSTALL_DIR" when running CMake. Otherwise, you will be installing files with the same names from the two versions in the same location.

For example, if you install KDE-4.3 and KDE-4.4 use:

-DSYSCONF_INSTALL_DIR=/etc/kde-4.3
-DSYSCONF_INSTALL_DIR=/etc/kde-4.4

respectively.

Then you must configure D-Bus to find these directories.

For example for "SYSCONF_INSTALL_DIR=/etc/kde-4.4", first if the directory:

/etc/kde-4.4/dbus-1/session.d

doesn't exist, create it.

Then add:
  <includedir>/etc/kde-4.4/dbus-1/session.d</includedir>

to your: "/etc/dbus-1/session-local.conf" file.

And add:
  <includedir>/etc/kde-4.4/dbus-1/system.d</includedir>

to your: "/etc/dbus-1/system-local.conf" file.

If you don't have the: "system-local.conf", create it as above.

Work In Progress

My apologies! The documentation for D-Bus is inadequate, but I am working on this. Till then, ask on the KDE or KDE-Linux mailing lists.


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal