Felix Breuer wrote:
What I would like to know is the following:

* What is the standard way for a login manager to read/set the environment for
  a session? Are login managers supposed to go through an Xsession script?

I was just poking around the Entrance source and also the way xdm works last week, while trying to see what can be done to solve the Entrance+csh-as-login-shell issue.

Well, XDM goes thru /etc/X11/xdm/Xstartup as root, which login the user in utmp, but DOES_NOT run the shell as a login shell, hence the startup scripts are not read.

Then XDM run the /etc/X11/xdm/Xsession script as the user just logged in. And my Xsession (slackware) does have this patch

<patch>
# Since xdm doesn't run a bash -login shell (or any other login shell)
# we should source these files to set up the user's environment.
profile=/etc/profile
userprofile=~/.profile

if [ -r $profile ]; then
        source $profile 1> /dev/null 2> /dev/null
fi
if [ -r $userprofile ]; then
        source $userprofile 1> /dev/null 2> /dev/null
fi
</patch>

Which loads the profile. So in this case, its not the login shell which does it, but the Xsession script.

I have checked kdm, and kdm use the same sessreg (although in kdm this is a function instead), and not /bin/sh -l.

I am still trying to see how I can change entrance to either use /usr/X11R6/bin/sessreg or the sessreg.c from kdm, instead of /bin/sh -l.

Cheers,
Phuah Yee Keat


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to