From owner-freebsd-questions Wed Feb 12 22:43:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA21530 for questions-outgoing; Wed, 12 Feb 1997 22:43:05 -0800 (PST) Received: from goodall.u.washington.edu (pharaoh@goodall.u.washington.edu [140.142.12.163]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA21525 for ; Wed, 12 Feb 1997 22:42:58 -0800 (PST) Received: from localhost (pharaoh@localhost) by goodall.u.washington.edu (8.8.4+UW96.12/8.8.4+UW96.12) with SMTP id WAA148484; Wed, 12 Feb 1997 22:42:54 -0800 Date: Wed, 12 Feb 1997 22:42:54 -0800 (PST) From: "E. Lakin" To: Doug White cc: Glenn Johnson , freebsd-questions@freebsd.org Subject: Re: xman path In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I specified my MANPATH environment variable in my ".profile" file (using > > BASH) to include the X11R6/man entries. If I launch xman from an xterm, > > all is well; but if I set up an xman launch as a button or menu item in > > my window manager, I do not get my x program manual entries. Also, if I > > start xman from ".xinitrc" or ".xsession", I do not get the x program > > manual entries. How can I get the MANPATH environment variable to be > > read properly? Thanks in advance. > It has to do with the environment used when X is started. I've never been > very sure about this. You might try moving manpath into .login or > .xsession. For xman to use a customized MANPATH , it either has to recieve that path from the command line, or it's parent process. When xman is called from an xterm, the xterm is the parent process. If a custom MANPATH is in your .profile, then it passed from the xterm to the xman. However, when xman is called from a .xsession/.xinitrc file, the parent of xman is the .xsession/.xinitrc shell script. And since shell scripts don't use the .profile or .login files, xman will only recieve a customized manpath if it is defined for it's parent, i.e. by putting "MANPATH=...; export MANPATH" in your .xsession/xinitrc. Finally, if you call xman from a button/menu, then the parent of xman is the window manager. But, the parent of the window manager is...the .xsession/.xinitrc file! so yet again, the MANPATH must be specified in the .xsession/.xinitrc file. (this is assuming your window manager is started in your .xsession/.xinitrc file...if it's started from the command line, it will inherit all the environmental variables found in your .profile! i think) --eric lakin >