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

Solaris CDE Startup Examples

This section provides examples of how you might edit the following user startup files:

The Solaris CDE startup process defines a shell variable named DT in the .login or.profile script so that checking can be done during the Solaris CDE startup process. This prevents terminal-related commands such as tty and stty from executing. Refer to the following script examples:

.login (C shell)

	if ( ! ${?DT} ) then
		stty erase `^h`
	endif

.profile (sh or ksh)

	if [ ! “$DT” ]; then
		stty erase `^h`
	fi

The extra syntax around DT prevents warnings from the C shell when DT is not defined. DT is not defined when the user logs in from a conventional text-based console login prompt. See the HomeDirectory/.dtprofile file for more information about setting up dot files.


Note –

You specify Solaris CDE tty settings in .Xdefaults.


The user's .Xdefaults file is sourced for user-specific resources during the Solaris CDE startup. For example, ttyModes ensures that the user's favorite tty settings are used in terminal emulation windows like dtterm and xterm. The following line shows a typical ttyModes setting in the .Xdefaults file:

*ttyModes: erase ^H intr ^C kill ^U start ^Q stop ^S susp ^Z`


Note –

Favorite Solaris CDE resources differ from default settings.


The Desktop Window Manager's placement of icons is an example of default settings. In this case the following line in the .Xdefaults file shows the default icon placement setting:

Dtwm*iconPlacement: right top