Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!novavax!rm1!davis From: davis@rm1.UUCP (Gary A. Davis) Newsgroups: comp.windows.x Subject: Toolkit is not reading my resource file Message-ID: <862@rm1.UUCP> Date: 25 May 90 20:56:25 GMT Distribution: usa Organization: Racal Milgo, Sunrise, FL Lines: 29 Reply_to: rm1!davis Reference: Decwindows According to my doc on the XtInitialize intrinsic (which calls XtDisplayInitialize), there are several steps in the loading of the resource database: 1. /usr/lib/X11/app-defaults/xxx 2. XAPPLRESDIR environment variable points to a user directory 3. ~/.Xdefaults 4. XENVIRONMENT env var points to a host directory (or ~/.Xdefaults-host [replace "host" with the host name] 5. Command line I am having problems with item 2. This is supposed to be a directory of files named by the application class name. It was being ignored. I looked at the source code for the intrinsic and it was obvious that it didn't do anything with XAPPLRESDIR. In its place, it built a filename consisting of the home directory, a dot and then the class name. I created the file as ~/.Appl and it worked. Which way is it supposed to be? The way it was documented or the way it was implemented? -- Gary A. Davis Racal-Milgo, P.O. Box 407044, Fort Lauderdale, Fl 33340, (305) 846-4393 mailrus!uflorida!novavax!rm1!davis