Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!FOOBAR.COLORADO.EDU!grunwald From: grunwald@FOOBAR.COLORADO.EDU (Dirk Grunwald) Newsgroups: comp.windows.x Subject: locating app-defaults Message-ID: <9001072025.AA12496@foobar.Colorado.EDU> Date: 7 Jan 90 20:25:32 GMT Sender: daemon@athena.mit.edu (Mr Background) Reply-To: grunwald@foobar.colorado.edu Organization: The Internet Lines: 138 Hi, This is on a DECstation-3100. I configured X11R4 such that everything falls under a single directory, /usr/local/X11 ( making it easy to export ). My app-defaults directory is in /usr/local/X11/lib/X11/app-defaults I used the following defines in site.conf #define BinDir /usr/local/X11/bin #define UsrLibDir /usr/local/X11/lib #define IncRoot /usr/local/X11/include #define AdmDir /usr/local/X11/adm My problem is that e.g. appres doesn't find resources in that directory, but *does* find them in /usr/lib/X11/app-defaults. An example follows. I compiled appress using: cc -o appres appres.o -O -Wf,-XNh2000 -Olimit 2000 -L/usr/local/X11/lib -lXt -lXext -lX11 so the X11R4 version of libXt.a should be include. I determined that the problem was that lib/Xt/IntrinsicI.h defines XFILESEARCHPATH with /usr/lib/X11 hard-coded, instead of using the definition of UsrLibDir given above. Searching through the Imake directory doesn't show an easy way to over-ride this. It doesn't appear get set in the lib/Xt/Makefile. Any clues? Should I simply change it by hand? Script started on Sun Jan 7 13:13:49 1990 [foobar-1] ls -l /usr/local/X11/lib/X11/app-defaults/XFontSel -r--r--r-- 1 grunwald 2965 Jan 7 12:37 /usr/local/X11/lib/X11/app-defaults/XFontSel [foobar-2] appres XFontSel *background: black *doubleClickDelay: 250 *Font: -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1 *language_preference1: 6 *language_preference2: 6 *Background: black *Foreground: white *BorderColor: white *Border: white *internalBorderColor: white *Scrollbar*Background: white *Scrollbar*Foreground: black *Command.ShapeStyle: roundedrectangle *highlight: white *borderColor: white *foreground: white [foobar-3] strings appres | grep usr /usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S /usr/local/X11/lib/X11/XtErrorDB /usr/local/X11/lib/X11/XKeysymDB /usr/local/X11/lib/X11/XErrorDB [foobar-4] ln -s /usr/local/X11/lib/X11/app-defaults/XFontSel /usr/lib/X11/app-defaults/XFontSel [foobar-5] appres XFontSel XFontSel.cursor: left_ptr *background: black *doubleClickDelay: 250 *fontName*skipAdjust: true *sampleText*allowResize: true *sampleText*Height: 50 *sampleText*Label: \ ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\ abcdefghijklmnopqrstuvwxyz\n\ 0123456789\n *Font: -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1 *language_preference1: 6 *language_preference2: 6 *Background: black *Foreground: white *BorderColor: white *Border: white *appDefaultsVersion: 1 *internalBorderColor: white *allowShellResize: true *Scrollbar*Background: white *Scrollbar*Foreground: black *commandBox.ShowGrip: false *commandBox*top: chainTop *commandBox*bottom: chainTop *Command.ShapeStyle: roundedrectangle *quitButton.Label: quit *quitButton.left: chainLeft *quitButton.right: chainLeft *ownButton.Label: select *ownButton.left: chainLeft *ownButton.right: chainLeft *ownButton.fromHoriz: quitButton *countLabel.Label: 999999 fonts match *countLabel.left: chainRight *countLabel.right: chainRight *countLabel.BorderWidth: 0 *countLabel.Justify: right *fieldBox.Orientation: horizontal *fieldBox.HSpace: 0 *fieldBox*field9.Label: resy *fieldBox*field10.Label: spc *fieldBox*field11.menu.Options.ShowUnselectable: False *fieldBox*field11.Label: avgWdth *fieldBox*field12.Label: rgstry *fieldBox*field13.Label: encdng *fieldBox*MenuButton.BorderWidth: 0 *fieldBox*MenuButton.internalHeight: 0 *fieldBox*MenuButton.internalWidth: 0 *fieldBox*MenuButton.shapeStyle: rectangle *fieldBox*field0.Label: fndry *fieldBox*field1.Label: fmly *fieldBox*field2.Label: wght *fieldBox*field3.Label: slant *fieldBox*field4.Label: sWdth *fieldBox*field5.Label: adstyl *fieldBox*field6.Label: pxlsz *fieldBox*field7.Label: ptSz *fieldBox*field8.Label: resx *dash.label: - *dash.borderWidth: 0 *dash.internalHeight: 0 *dash.internalWidth: 0 *highlight: white *borderColor: white *foreground: white [foobar-6] script done on Sun Jan 7 13:14:49 1990