Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: comp.windows.x Subject: Re: Proper handling of locally-installed software Message-ID: Date: 8 Jun 90 15:39:45 GMT References: <1990Jun7.171528.4968@smsc.sony.com> Sender: news@MorningStar.COM (USENET Administrator) Reply-To: bob@MorningStar.Com (Bob Sutterfield) Organization: Morning Star Technologies Lines: 23 In-Reply-To: dce@smsc.sony.com's message of 7 Jun 90 17:15:28 GMT In article <1990Jun7.171528.4968@smsc.sony.com> dce@smsc.sony.com (David Elliott) writes: ...For now, this means having every user set XUSERFILESEARCHPATH, which isn't always acceptable (it's tough enough to get people to put /usr/local/bin in their paths)... Is there a way to set up Xt so that it will look in both /usr/lib/X11 and /usr/local/lib without forcing each user to do something special? From expo.lcs.mit.edu:pub/R4/ERRATA, dated Jan 19 10:17: 2. If you are trying to install library files into a directory other than /usr/lib/X11, you'll need to change XFILESEARCHPATHDEFAULT and ERRORDB in the file mit/lib/Xt/IntrinsicI.h to point at the correct directories. You'll also need to change SYSTEM_INIT_FILE in mit/clients/twm/parse.c. You'll also need to add the following line to mit/lib/Xmu/Imakefile: DEFINES = -DBITMAPDIR=\"$(INCDIR)/bitmaps\" Though it may be overkill, my IntrinsicI.h looks like: /* used by XtResolvePathname */ #ifndef XFILESEARCHPATHDEFAULT #define XFILESEARCHPATHDEFAULT "/usr/local/lib/X11/%L/%T/%N%S:/usr/local/lib/X11/%l/%T/%N%S:/usr/local/lib/X11/%T/%N%S:/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S" #endif