BaseXsession=<etc>/gdm/Xsession |
This is the base X session file. When a user logs in, this script will be run with the selected session as the first argument. The selected session will be the Exec= from the .desktop file of the session.
If you wish to use the same script for several different display managers, and wish to have some of the script run only for GDM, then you can check the presence of the GDMSESSION environmental variable. This will always be set to the basename of .desktop (without the extension) file that is being used for this session, and will only be set for GDM sessions. Previously some scripts were checking for GDM_LANG, but that is only set when the user picks a non-system default language.
This script should take care of doing the "login" for the user and so it should source the /etc/profile and friends. The standard script shipped with GDM sources the files in this order: /etc/profile then ~/.profile then /etc/xprofile and finally ~/.xprofile. Note that different distributions may change this however. Sometimes users personal setup will be in ~/.bash_profile, however broken that is.
On Sat, 18 Dec 2004, Mark Phillips wrote:Thanks for your response....I tried the following and the environment variables I set up in /etc/profile are still not being read: 1. Created a file .xsession 2. Added these lines: . /etc/profile exec gdmDon't restart the display manager. The display manager will run ~/.xsession. exec startkde # or exec blackbox # for example Jeremy C. Reed BSD News, BSD tutorials, BSD links http://www.bsdnewsletter.com/ --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss