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

Sourcing the .dtprofile Script

At session startup, the Xsession script sources the user's HomeDirectory/.dtprofile script. The HomeDirectory/.dtprofile script is a /bin/sh or /bin/ksh script that enables users to set up environment variables for their sessions. For more information on setting up environment variables, see Additional Session Startup Customizations.

If the HomeDirectory/.dtprofile script does not exist, such as when a user is logging in to the desktop for the first time, Xsession will copy the desktop default sys.dtprofile to HomeDirectory/.dtprofile.

The desktop default is /usr/dt/config/sys.dtprofile. To customize the sys.dtprofile script, copy sys.dtprofile from /usr/dt/config to /etc/dt/config and edit the new file.