Re: Login Shell/Profile: Stop the Madness
Michael Graham wrote:
> ...
> But in this case you exec'ing the users own .xsession so sourcing
> .profile isn't a problem, since the user should do it in the .xsession
> (either manually or by making it a login session) so you just do
That does not work.
You seem to be assuming that .xsession is a login-time script.
It is not. (It is only an "X-startup-time" script.)
If what you suggest were done, then if the user logs in via a
console and then starts X by typing startx, .xsession would
re-initialize the environment to login settings.
Consider logging in via the console, having login initialization
done, changing some environment variables, and typing startx:
You want to be able to inherit those environment variable changes.
You don't want starting X to re-initialize the enviroment (for
every program started under X or the window manager).
A login shell should be started when the user logins in, and
ONLY when the user logs in (or explicitly requests a login
shell).
Therefore:
- The display manager (whichever parts logs the user in) should
start a login shell.
- Other parts of X should NOT start a login shell (unless
requested by the user).
Michael B Allen wrote:
>
> Where sould I put X initialization commands that need to be executed by
> root like xset -b and kdbrate -r 24?
>
> I'm using gdm so /etc/X11/gdm/Init/Default looks like a winner but it's
> seems specific to gdm. Is there a better place?
>
> Thanks,
> Mike
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Daniel
--
Daniel Barclay
dsb@smart.net
Reply to: