On Wed, Aug 09, 2000 at 01:19:50PM -0700, dckinder@mountain.net wrote: > When I telnet into Debian from another machine, I get the $PATH > variables which my .bash_profile states. > > However, when I log into it directly, via XDM, and then turn on a > bash shell, I get the /etc/profile $PATH. . Moreover, if I log on from > another machine using - not telnet - but rather VNC, then I also get > the /etc/profile $PATH. (After the VNC login, I went back again to > telnet, where, once again, I got the .bash_profile $PATH) > > So this has something to do with XWindows. > > But what? yes its because {x,w}dm do not setup the environment properly, i fixed this by changing #!/bin/sh in /etc/X11/Xsession to #! /bin/bash --login as others have mentioned starting xterms with the -ls switch will work -- for the xterms -- but not for anything else, for example the menus, unlike all the other menu entries you would have to specify a full pathname in your custom menu entries. the above hack causes your entire X session to have a proper environment like any other login session. but only if you use bash for your shell.. > > > > > > > On 09-Aug-2000 dckinder@mountain.net wrote: > > > When I attempt to adjust my path by editing .bash_profile, there is > > > no response. > > > > > > No matter how I may edit it, when I type $PATH, I get the > > > environment set by /etc/profile. > > > > > > How can I override /etc/profile? > > > > Try something like this in your user .bash_profile: > > > > PATH=$PATH:$QTDIR/bin:$HOME/bin > > export PATH > > > > > > Put your additional paths after the "$PATH:" part above. > > Don't forget to do '. .bash_profile' after editing. > > > > -- > > Andrew > > > > > > -- > > Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org > > < /dev/null > > > > > > > Regards, > > Duncan C. Kinder > dckinder@mountain.net > > > -- > Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null > -- Ethan Benson http://www.alaska.net/~erbenson/
Attachment:
pgpm0Ca3VybSJ.pgp
Description: PGP signature