On Tue, Nov 07, 2000 at 12:07:43PM +0000, Thomas Halahan wrote: > Dear deb-users, > > I want my .bash_profile to be read "globally" whenever I log in from > xdm. Previously in Redhat I would start X from /dev/tty1 which was a > login shell. However with debian I log in from xdm, and consequently > none of my konsoles (I run KDE2) or xterms (/dev/pts/?) are are login > shells by default. This means that my bash profile is not read. > > Q> Is there any way, in .xsessions or otherwise, to load my > bash_profile "globally" when logging in from xdm?
change the first line of /etc/X11/Xsession from:
#!/bin/sh
to
#! /bin/bash --login
you also might want to add:
if [ -f /etc/environment ]; then
eval env "$(cat /etc/environment)"
fi
--
Ethan Benson
http://www.alaska.net/~erbenson/
pgpDdIVCLz7PX.pgp
Description: PGP signature

