The GNOME Desktop does not support system-wide login scripts
or logout scripts. The session manager only allows users to configure user
sessions. Users can configure non-session-managed startup applications with
the Sessions
preference tool.
You can work around the lack of support for system-wide login scripts. To create a system-wide login script, create the script in the /usr/dt/config/Xsession.d directory. Name the script as follows:
number-greater-than-1000.name
For example, name the script 1050.login. For more information on the /usr/dt/config/Xsession.d file, see The XSession File in the dtlogin(1) man page.