home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21466 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.5 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!oboe!ware
  2. From: ware@oboe.cis.ohio-state.edu (Peter Ware)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Defeating the resource file search path.
  5. Date: 22 Jan 1993 08:51:52 -0500
  6. Organization: Ohio State Computer Science
  7. Lines: 26
  8. Sender: ware@cis.ohio-state.edu
  9. Message-ID: <WARE.93Jan22085147@oboe.cis.ohio-state.edu>
  10. References: <3310@contex.contex.com>
  11. NNTP-Posting-Host: oboe.cis.ohio-state.edu
  12. In-reply-to: avinash@felix.contex.com's message of 21 Jan 93 16:16:40 GMT
  13.  
  14. You could, conceivably, use some idiosyncratic method for loading
  15. the resources and just replace the resource database.  Look at the
  16. Xrm*() functions in Xlib.  But don't do it.
  17.  
  18. I'll concede that where an Xt program finds resource files does seem
  19. to come from an incredible variety of places.  They are (from highest
  20. priority to lowest priority):
  21.  
  22.     1. Args passed at creation time.
  23.     2. Command line arguments.
  24.     3. User's per host defaults file
  25.     4. User's defaults file.
  26.     5. User's per application default file.
  27.     6. System wide per application default file.
  28.  
  29. Of course, it is complicated by the fact that several of these can be
  30. loaded from different places.  Look at the Xt FAQ, Question 20, for
  31. full details about where resources are found.
  32.  
  33. --pete
  34. --
  35. Pete Ware                    ware@cis.ohio-state.edu
  36. CIS Dept, Ohio State University            w/ (614) 292-7318
  37. 228 Bolz Hall, 2036 Neil Ave.            h/ (614) 538-0965
  38. Columbus, OH 43210
  39. Welcome William Patrick Ware to the world!  Born 10/21/92, 8lbs 6.2oz (3.83kg)
  40.