From owner-freebsd-questions Mon Feb 22 13:28:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from webclass.csuchico.edu (webclass.CSUChico.EDU [132.241.199.40]) by hub.freebsd.org (Postfix) with ESMTP id 2687A10EDE for ; Mon, 22 Feb 1999 13:27:51 -0800 (PST) (envelope-from fcondo@csuchico.edu) Received: from csuchico.edu (pm3dyn84.dip.CSUChico.EDU [132.241.249.84]) by webclass.csuchico.edu (8.8.8/8.8.8) with ESMTP id NAA15189 for ; Mon, 22 Feb 1999 13:27:46 -0800 (PST) (envelope-from fcondo@csuchico.edu) Message-ID: <36D1CBB4.B8C4FF50@csuchico.edu> Date: Mon, 22 Feb 1999 13:27:16 -0800 From: Fred Condo Organization: California State University, Chico X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en, fr, de MIME-Version: 1.0 To: "questions@FreeBSD.ORG" Subject: Setting environment variables for an X session Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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