Setting the Value of a Search Path

You can modify the search paths on a
system-wide or personal basis. Modifications are done by setting values for
the system-wide or personal input variables. Any modifications you make are
added to the built-in search path locations.

To See the Current Value for a Search Path (Output Variable)

Use the dtsearchpath command to display the current
values for the search paths:

To obtain the value for the current (login) user, type the
command:

dtsearchpath -v

To obtain the value for a different user, type the command:

dtsearchpath -u user

Search path values include these variables:

%H—used in DTHELPSEARCHPATH. The help volume name.

%B—used in XMICONSEARCHPATH. The base name of an icon file.

%M—the size of the icon file (.l, .m, .s, .t) used in XMICONSEARCHPATH.

%L—value of the LANG environment variable.

To Make Personal Modifications to a Search Path

Open HomeDirectory/.dtprofile
for editing.

Add or edit a line that defines and exports the personal input variable.

For example, the following line adds a location to the user's personal
application search path:

export DTSPUSERAPPHOSTS=/projects1/editors

To make the change take effect, log out and back in.

To Make System-Wide Modifications to a Search Path

Log in as root.

If the file /etc/dt/config/Xsession.d/0010.dtpaths
doesn't exist, create it by copying /usr/dt/config/Xsession.d/0010.dtpaths.

Open /etc/dt/config/Xsession.d/0010.paths for editing.
Add or edit a line that defines and exports the system-wide input variable.

For example, the following line adds a location to the system-wide help
search path:

export DTSPSYSHELP=/applications/helpdata

Inform all users on the system that they must log out and back in for
the change to take effect.