Re: Login Shell/Profile: Stop the Madness
Jamin W. Collins wrote:
I'll admit I too don't know the internals of it but I would think that
the solution proposed previously would work for at least some of the
On Thu, Jun 17, 2004 at 07:58:56PM -0400, Michael B Allen wrote:
There are no new files. The change is very simple.
Ultimately the correct solution is to edit
/etc/X11/Xsession.d/99xfree86-common_start to read:
exec -l $SHELL -c "$STARTUP"
If I'm understanding what I've looked at of the Xsession startup the
value of $STARTUP could be set prior to calling Xsession and if so will
be used as the command to start. If not it will fall back to using the
user's personal startup config.
No, X startup is not quite the right place to do that. It needs to
be done when logging in, and X startup is NOT necessarily associated
with logging in. (Remember the startx command.)
If one starts X by using startx after logging in to a console, the
above suggestion re-applies login-time settings even though the user
has not logged in again.
That breaks this case: Log in to console (getting login-time
environment variable settings), change an environment variable,
run startx (expecting it, as a subprocess, to use the changed
environment variable value).
Running a login shell needs to be done by the display manager
(or something in the chain between the display manager and
the window manager and any desktop manager).