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

Login Startup Files

When the Solaris CDE Login Manager authenticates the user, it calls the following script to start the desktop:

/usr/dt/bin/Xsession

The first user-specific file that Xsession calls is HomeDirectory/.dtprofile.

The first time a new user logs into Solaris CDE, a .dtprofile file is copied into the user's home directory. By default, the file does nothing. However, it does contain many comments on how it might be edited. The user can edit this file to add user-specific environment variables.


Note –

Like the Xsession script that calls .dtprofile, this file uses the ksh syntax.


One useful edit is to uncomment the last line of the .dtprofile file:

DTSOURCEPROFILE=true

This line allows the user's HomeDirectory/.login (for csh users) or the HomeDirectory/.profile (for other shell users) to be sourced as part of the startup process.