From owner-freebsd-questions Mon Feb 22 17: 8:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from procyon.meridian-enviro.com (thunder.meridian-enviro.com [207.109.234.227]) by hub.freebsd.org (Postfix) with ESMTP id E3DED10E9A for ; Mon, 22 Feb 1999 17:08:21 -0800 (PST) (envelope-from rand@meridian-enviro.com) Received: from deneb.meridian-enviro.com (deneb.meridian-enviro.com [10.10.10.32]) by procyon.meridian-enviro.com (8.9.2/8.9.2) with ESMTP id TAA10458; Mon, 22 Feb 1999 19:08:17 -0600 (CST) Received: (from rand@localhost) by deneb.meridian-enviro.com (8.9.2/8.9.2) id TAA08734; Mon, 22 Feb 1999 19:08:26 -0600 (CST) From: "Douglas K. Rand" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14033.65418.437136.46282@deneb.meridian-enviro.com> Date: Mon, 22 Feb 1999 19:08:26 -0600 (CST) To: Fred Condo Cc: "questions@FreeBSD.ORG" Subject: Re: Setting environment variables for an X session In-Reply-To: <36D1CBB4.B8C4FF50@csuchico.edu> References: <36D1CBB4.B8C4FF50@csuchico.edu> X-Mailer: VM 6.47 under 20.4 "Emerald" XEmacs Lucid X-Face: $L%T~#'9fAQ])o]A][d7EH`V;"_;2K;TEPQB=v]rDf_2s% One thing I do not understand is where to set environment Fred> variables such as NNTP_SERVER or LD_LIBRARY_PATH (for real Fred> video) or MANPATH (I can't get xman to see local man pages, for Fred> example). When I used only text or telnet modes, I set these in Fred> .profile. You need a .xsession script in your home directory. This is run by xdm when you login in. I think it will be somewhat difficult to persuade bash to automatically source your .bashrc file from .xsession, but you can hard code a ". ~/.bashrc" line in your .xsession. Sales pitch: I use zsh specifically because it ALWAYS sources ~/.zshenv, even for shell scripts. Make sure your .xsession is executable (chmod a+x ~/.xsession) and is a bash script (starts out with #!/bin/bash or what ever your path to bash is) and things should work fine. You can also set environment variables directly in your .xsession if you want too. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message