You are not logged in.

#1 2004-10-21 20:56:18

mdirolf
Member
From: Princeton, NJ
Registered: 2004-05-21
Posts: 69

PATH variable

Hi all. This is probably a really easy question to answer, but when my PATH variable is set in /etc/profile and by login it doesnt seem to work in aterm, the full path is not set.  However when I dont start X and check the PATH from there it is there in its entirety.  Is there a different file read by an x terminal? or what am I doing wrong?
Thanks,
Mike

Offline

#2 2004-10-21 21:03:49

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: PATH variable

try it with xterm and compare to aterm... if they are different, then you need to set aterm to be a login shell (i can look this up later if it's the problem).

if they both still don't have the full PATH, that's something different...

Offline

#3 2004-10-21 21:16:36

mdirolf
Member
From: Princeton, NJ
Registered: 2004-05-21
Posts: 69

Re: PATH variable

Thanks for the quick reply.
Xterm doesnt have the full PATH set either.
Any ideas?
-Mike

Offline

#4 2004-10-21 22:13:34

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: PATH variable

Try bash --login as the first command in your aterm/xterm and see if that reloads the path.

You are starting the terminal as a login shell? (ie: xterm -ls)

Dusty

Offline

#5 2004-10-21 22:37:58

mdirolf
Member
From: Princeton, NJ
Registered: 2004-05-21
Posts: 69

Re: PATH variable

Thanks dusty - i wasnt starting as a login shell

Offline

#6 2004-10-21 22:51:18

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: PATH variable

you could also add:

xterm*loginShell: true

to your ~/.Xdefaults file if you have one.  That's what I have.

Offline

Board footer

Powered by FluxBB