X sessions and login shells

Yannick Le Saint (kyncani) y.lesaint at gmail.com
Sat Apr 16 21:37:59 UTC 2005


On Sat, 2005-04-16 at 22:27 +0100, James Wilkinson wrote:
> Richard Downer wrote:
> > With shells there is a distinction between the "login shell" and other
> > shells - one difference being that a login shell will execute
> > 'profile' scripts.  For bash, as I remember, these are /etc/profile
> > and ~/.bash_profile.  zsh has equivalents with different names.  These
> > profiles are for setting global environment variables - I'm using
> > these to set EDITOR and JAVA_HOME variables.
> > 
> > Am I right - logging in through X does not invoke a login shell and
> > does not load profiles?  If so, why?
> 
> Are you using GNOME Terminal?
> 
> If so, you might want to select the Edit menu, the Current Profile
> option, the Title and Command tab, and see what "Run command as a login
> shell" does for you.

  Or (with bash), you could symlink ~/.bashrc and ~/.bash_profile
together.


-- 
Yannick Le Saint (kyncani) <y.lesaint at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050416/d5e8de2e/attachment.sig>


More information about the ubuntu-users mailing list