The .mcoprc file

The .mcoprc file

The .mcoprc file (in each user's home directory) can be used to configure MCOP in some ways. Currently, the following is possible:

GlobalComm

The name of an interface to be used for global communication. Global communication is used to find other objects and obtain the secret cookie. Multiple MCOP clients/servers that should be able to talk to each other need to have a GlobalComm object which is able to share information between them. Currently, the possible values are ‘Arts::TmpGlobalComm’ to communicate via /tmp/mcop-username directory (which will only work on the local computer) and ‘Arts::X11GlobalComm’ to communicate via the root window properties on the X11 server.

TraderPath

Specifies where to look for trader information. You can list more than one directory here, and separate them with commas, like

ExtensionPath

Specifies from which directories extensions (in the form of shared libraries) are loaded. Multiple values can be specified comma seperated.

An example which uses all of the above is:

# $HOME/.mcoprc file
GlobalComm=Arts::X11GlobalComm

# if you are a developer, it might be handy to add a directory in your home
# to the trader/extension path to be able to add components without
# installing them
TraderPath="/opt/kde2/lib/mcop","/home/joe/mcopdevel/mcop"
ExtensionPath="/opt/kde2/lib","/home/joe/mcopdevel/lib"
KDE Logo