source: trunk/third/bonobo-activation/api-docs/configuring.sgml @ 18311

Revision 18311, 2.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18310, which included commits to RCS files with non-trunk default branches.
Line 
1<chapter id="configuring">
2<title>Configuring Bonobo Activation</title>
3
4<sect1>
5<title>.server search path.</title>
6<para>
7To know the list of available CORBA servers on your local machine, the OAF daemon
8searches a number of directories for .server XML files which contain the description
9of the services offered by these servers.
10By default, OAF will try to find them in ${prefix}/share/oaf which may be a problem
11if users install other applications using OAF in different prefixes.
12</para>
13
14<para>
15To work around this problem, OAF will parse a number of other directories.
16It will parse the directories listed in the OAF_INFO_PATH env variable.
17It will parse the prefixes listed in the GNOME_PATH env variable.
18If, for example, <emphasis>OAF_INFO_PATH=/opt/gnome/share/oaf:/opt/gnome/oaf/share/oaf</emphasis>,
19OAF will parse <emphasis>/opt/gnome/share/oaf</emphasis> and <emphasis>/opt/gnome/oaf/share/oaf</emphasis>
20If <emphasis>GNOME_PATH=/opt/gnome:/opt/gnome/oaf</emphasis>, OAF will parse
21<emphasis>/opt/gnome/share/oaf</emphasis> and <emphasis>/opt/gnome/oaf/share/oaf</emphasis>.
22</para>
23
24<para>
25The above env variables are kept for compatibility purposes with older versions of
26OAF and for GNOME integration. OAF has a much nicer configuration file which allows
27you to control which directories are parsed by OAF. This XML configuration file
28is located in ${prefix}/etc/oaf/oaf-config.xml. An empty oaf-config.xml and
29a sample oaf-config.xml.sample file should be installed on your system.
30</para>
31
32<para>
33It is recommended to use the <emphasis>oaf-sysconf</emphasis> command-line configuration
34tool to edit this file. However, here is an example of its format.
35</para>
36
37<programlisting>
38&lt;?xml version="1.0"?>
39
40&lt;oafconfig>
41
42&lt;searchpath>
43&lt;item>/opt/gnome/share/oaf&lt;/item>
44&lt;item>/usr/local/gnome/share/oaf&lt;/item>
45&lt;item>/usr/local/share/oaf&lt;/item>
46&lt;item>/opt/gnome/oaf/share/oaf&lt;/item>
47&lt;/searchpath>
48
49&lt;searchpath>
50&lt;item>/opt/gnome/oaf/share/oaf&lt;/item>
51&lt;/searchpath>
52
53&lt;/oafconfig>
54</programlisting>
55
56<para>There can be any number of &lt;item> tags in a &lt;searchpath> tag and any number of
57&lt;searchpath tags in the &lt;oafconfig> tag.</para>
58
59</sect1>
60
61</chapter>
Note: See TracBrowser for help on using the repository browser.