Re: Making environment variables visible to X11
Re: Making environment variables visible to X11
- Subject: Re: Making environment variables visible to X11
- From: email@hidden (Xavier HUMBERT)
- Date: Sun, 19 Jan 2003 23:42:25 +0100
- Organization: Free Tibet
email@hidden (Simeon H.K. Fitch) wrote :
> should my shell environment get propogated automatically
Short answer : no.
Longest answer : you can.
Just don't use builtin xinirc, but write your own, and let your xterm
use a *login* with the option `xterm -ls`
Here is mine :
$ cat ~/.xinitrc
# First, include fink PATH, and initialize fink
PATH="$PATH:/sw/bin"
. /sw/bin/init.sh
# or corresponding init if you use tcsh, but who does ?
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
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
# start some nice programs
xmodmap -e 'keycode 66 = Mode_switch'
xmodmap -e 'keycode 69 = Alt_L'
~/bin/xroot -display :0 -geometry 50x50+0-0 -color blue &
xterm -geometry 160x60+1+26 -ls -sb -rightbar -sl 10000 &
exec quartz-wm
--
Xavier
http://www.freetibet.org
http://www.tibet.fr/
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.