Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

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:

		dtsearchpath -v
		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

  1. Open HomeDirectory/.dtprofile for editing.

  2. 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
  3. To make the change take effect, log out and back in.

To Make System-Wide Modifications to a Search Path

  1. Log in as root.

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

  3. 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
  4. Inform all users on the system that they must log out and back in for the change to take effect.