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

  1. Path: sparky!uunet!contex!felix.contex.com!avinash
  2. From: avinash@felix.contex.com (Avinash Chopde)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Defeating the resource file search path.
  5. Summary: XFILESEARCHPATH is the key!
  6. Message-ID: <3338@contex.contex.com>
  7. Date: 28 Jan 93 22:26:19 GMT
  8. References: <3310@contex.contex.com> <1437@pivot-sts.sbi.com>
  9. Sender: news@contex.contex.com
  10. Lines: 40
  11.  
  12. In article <1437@pivot-sts.sbi.com>, ray@rann.sbi.com (Raymond Blum) writes:
  13. > In article 3310@contex.contex.com, avinash@felix.contex.com (Avinash Chopde) writes:
  14. > >Is there any way to defeat the default X resource file search path?
  15. > >It is extremely difficult to modify X programs if it involves changing
  16. > >resource files---even if I keep a copy of the resource file in the
  17. > >current directory, the default X mechanism *merges* all the resource file
  18. > >it finds - from /usr/lib/app-defaults, from $XUSERFILESEARCHPATH,
  19. > >..Xdefaults, and $XENVIRONMENT!
  20. > >
  21. > >Is it possible to force a X program to use only resource files in
  22. > >the current directory, and inhibit this merging of resource files?
  23. > >
  24. >   Why not have your program set the relevant environment variables BEFORE initializing X? You could set XENVIRONMENT to something along the lines of 'dirname `$0`'... couldn't you?
  25.  
  26. Yup, but that does not solve the problem - since X will still merge files
  27. from the  standard places.
  28.  
  29. Thanks to all the persons who sent in replies.
  30. Here's the answer that works for me:
  31. 1) set XFILESEARCHPATH  to some dummy directory, to defeat the
  32.    X manager from looking in /usr/lib/X11/app-defaults
  33. 2) If necessary, set XUSERFILESEARCHPATH (to dummy path or current
  34.    directory or whatever).
  35. 3) If necessary, set XENVIRONMENT.
  36. 4) If necessary, clear out .Xdefaults (load it with xrdb, etc).
  37.  
  38. Actually, all I need to do is in 1).
  39. The manual I have (O Reilly Vol 4) does not mention that variable.
  40. It works on my system, so I finally have a method to debug/maintain X
  41. resource files....!
  42.  
  43. > ---Raymond
  44. > >If this is not possible, how does a X developer maintain and debug
  45. > >X resource files? (Edit the resource files in *all* the locations 
  46. > >on your system is an answer!)
  47. > >-- 
  48. -- 
  49. ---------------------------
  50. Avinash Chopde       office : 617 246 1776x5582    Wakefield, MA, USA.
  51. avinash@contex.com   (...!uunet!contex!avinash)
  52.