gdm and shell rc files
- From: Brian Cameron <Brian Cameron Sun COM>
- To: gdm sunsite dk, jirka 5z com
- Subject: gdm and shell rc files
- Date: Tue, 21 Sep 2004 11:01:14 -0500
George/gdm team:
Currently the way gdm2 works, the gdm2 Xsession file executes
/etc/profile and ~/.profile on login. It currently doesn't
execute any files that are specific to the user's default shell.
According to the bash man page:
"When bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order "
According to the csh man page:
"If the shell is a login shell, this is the sequence of invo-
cations: First, commands in /etc/.login are executed. Next,
commands from the .cshrc file your home directory are exe-
cuted. Then the shell executes commands from the .login file
in your home directory; the same permission checks as those
for .cshrc are applied to this file. Typically, the .login
file contains commands to specify the terminal type and
environment. (For an explanation of file interpreters, see
below "Command Execution" and exec(2).)"
So, the way gdm2 currently works, user's who use bash or csh do
not get the behavior specified in the bash/csh man pages. I
remember talking to George in the past, and I seem to remember
that he felt that gdm2 is currently doing things properly.
However, this seems broken. Shouldn't gdm be changed to work
better with bash and csh?
--
Brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]