How to set environment variables in .xinitrc
How to set environment variables in .xinitrc
- Subject: How to set environment variables in .xinitrc
- From: Bruce Truax <email@hidden>
- Date: Sat, 17 May 2003 09:16:39 -0400
How do I set environment variables in the .xinitrc file? I have tried
setenv but that is not a valid command for the sh shell so I tried env but
that does not seem to work either. Here is my .xinitrc file.
--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant
Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
#!/bin/sh
# $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
env
PATH=${PATH}:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/X11R6/bin:/usr/lo
cal/X11/bin:/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/s
ys
env DYLD_LIBRARY_PATH=/Applications/ds9
env TERM_PROGRAM=Apple_Terminal
# 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
xterm -geometry 80x50+0+20 -sb -rightbar -ls &
# start the window manager
exec quartz-wm
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.