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

Sourcing Xsession.d Scripts

After sourcing the HomeDirectory/.dtprofile script, the Xsession script sources the Xsession.d scripts. These scripts are used to set up additional environment variables and start optional daemons for the user's session. The default Xsession.d scripts are:

0010.dtpaths—documents customizable desktop search paths

0020.dtims—starts optional input method server

0030.dttmpdir—creates per-user, per-session temporary directory

0040.xmbind—sets up $XMBINDDIR to desktop default

There may be additional vendor-specific scripts in Xsession.d.

Xsession first sources all files in the /etc/dt/config/Xsession.d directory, followed by those in the /usr/dt/config/Xsession.d directory.

The desktop default Xsession.d scripts are located in the /usr/dt/config/Xsession.d directory. To customize an Xsession.d script, copy the script from /usr/dt/config/Xsession.d to /etc/dt/config/Xsession.d and edit the new file. You must have execute permission to perform this task.

Also, to have Xsession automatically source a script of your own, copy it to /etc/dt/config/Xsession.d.


Note –

When you modify or create an Xsession.d script, make sure that any foreground commands you issue are of short duration, as the time taken by the command will directly affect session startup time. If a foreground command does not exit, the session startup will hang. Commands run in an Xsession.d script that you want to remain running for the duration of the session should be run in the background.