Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 1999 13:27:16 -0800
From:      Fred Condo <fcondo@csuchico.edu>
To:        "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>
Subject:   Setting environment variables for an X session
Message-ID:  <36D1CBB4.B8C4FF50@csuchico.edu>

next in thread | raw e-mail | index | archive | help
I've been administering Unix servers since 1993 and FreeBSD servers
since 1996, but I have only in the last week started using the X window
system (part of my quest to eliminate my dependence on MacOS and
Windows). I have been very successful ever since I resigned myself to
not have accelerated graphics until I get a more-supported video card.

One thing I do not understand is where to set environment variables such
as NNTP_SERVER or LD_LIBRARY_PATH (for real video) or MANPATH (I can't
get xman to see local man pages, for example). When I used only text or
telnet modes, I set these in .profile.

Here is how I have X set up:

/etc/ttys says:
ttyv3	"/usr/X11R6/bin/xdm -nodaemon"	xterm	on secure

$HOME/.xinitrc says:
#!/usr/local/bin/bash
exec /usr/X11R6/bin/wmaker

I use bash as my shell. I have tried setting environment variables in
.profile and in .bashrc; setting them in .bashrc makes them carry over
into xterm sessions, but WindowMaker doesn't seem to get them when, for
example, launching Netscape from a WindowMaker dock icon.

Is there a (quasi-)canonical way to do this?
-- 
Fred Condo + fcondo@csuchico.edu + http://webclass.csuchico.edu/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D1CBB4.B8C4FF50>