LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] New distros Not sourcing .login?

[ILUG] New distros Not sourcing .login?

Liam Bedford * at lbedford.org
Mon Apr 30 10:40:42 IST 2001


On Mon, Apr 30, 2001 at 10:20:35AM +0100, Fergal Daly came forth with:
> Hi all,
> 	has anyone else had this problem? Under Redhat 7.0 (haven't tried it with
> 7.1) and Mandrake 8.0 when I login through X, nothing sources my .login, so
> my X session knows nothing about my path or my ENV variables etc.
> 
I used to have games with that kind of thing, and figuring out what gets
 called when is a pain.

if you're using bash, then:
for a login shell, it sources ~/.bash_profile, then ~/.profile if the first
one doesn't exist
for a non-login shell, it sources ~/.bashrc

So I find the easiest is to symlink them together, or make one source the
other...

I'm not sure that a GNOME session considers itself a login shell, so I don't
think it'll set the right flags for bash to do that (for instance, there's
an option to make gnome-terminal a login shell by default).

So I'd be inclined to make ~/.xsession be
#!/bin/bash
exec gnome-session

and make it exectuable..

L.
-- 
Liam Bedford                  | Four thousand holes in Blackburn, Lancashire
Software Engineer             | And though the holes were rather small
WBT Systems, Block 2,         | They had to count them all
Harcourt Centre, Harcourt St. | Now they know how many holes it takes to fill
01-4170100                    | The Albert Hall




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell