[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/environment



Hi, 

	This is off topic, but I have a trick for env variables and X:
 in my .xsession, I just run my bash initializations scripts. This is
 better for me, since I do a lot in my init scripts, than a site wide
 solution, and I thought I'd share it with other foleks too.

	manoj

----------------------------------------------------------------------
umask 022
export default_dir=${default_dir:=$HOME}

userresources=$default_dir/.Xresources
usermodmap=$default_dir/.Xmodmap
sysresources=/usr/lib/X11/xdm/.Xresources
sysmodmap=/usr/lib/X11/.Xmodmap
 
# load common variables
if test -f $default_dir/.bash_vars ; then
        . $default_dir/.bash_vars
fi

if [ ! $DISPLAY -o $DISPLAY = ":0.0" ]; then
     DISPLAY=`hostname`:0
fi

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi
 
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi
 
if [ -f $userresources ]; then
    xrdb -merge $userresources
fi
 
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi
eval $(ssh-agent)
ssh-add </dev/null &


xset -c b 95 s default &
if [ -z "$MANPATH" ]; then
        MANPATH=/usr/local/man:/usr/man; export MANPATH
fi

# Start some shelltools and the window manager
if test -x /usr/bin/X11/fvwm2; then
    /usr/bin/X11/fvwm2 &
elif [ -x /usr/bin/X11/fvwm ]; then
   /usr/bin/X11/fvwm &
elif [ -x /usr/bin/X11/twm ]; then
   /usr/bin/X11/twm &
fi
 
exec xterm -ut -T login -n login -fg Black -bg LightSteelBlue \
           -geometry 80x24+10+93 -ls 
----------------------------------------------------------------------

-- 
 "Incest is a voluntary act on the woman's part." Charles Rice,
 Professor of Law, Notre Dame University, in a pamphlet published by
 the American Life League
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: