[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: xdm login behaviour



On Sun, 28 Feb 1999, Bruce Richardson wrote:

> OK, I found the reason and a fix.
> 
> The Xsession script is the one run when xdm logs you in.  The first line is
> 
> #!/bin/bash -login
According to the bash folk, they never intended it to be used this way
> 
> which they obviously expected to cause bash to read /etc/profile (and so 
> on).  It doesn't - I don't know if they are just wrong here or if it's a 
> bug in /bash.  I tried changing the first line to
> 
> #!/bin/bash --login -i
which bash 1.whatever wouldn't like anyway
> 
> but bash choked on it, so I think this is a bug in bash 2.  Anyway, my 
> solution is to rename Xsession to Xsession.script and create a file called 
> Xsession which contains the following:
> ---------------------- cut ------------------------------
> #!bin/bash
> #
> #Wrapper for Xsession to make it read /etc/profile, /etc/bashrc etc.
> bash --login -i /etc/X11/xdm/Xsession.script
> ---------------------- cut ------------------------------

That won't work if you need to revert bash 1. I did, though I've since
learned to live with bash 2 (and even to prefer it).


I made mine source /etc/profile which makes it do everything right and
nobody can complain you're doing anything odd. It also worked when I
reverted to bash 1.4


-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]