Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!rutgers!ucsd!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: XGetDefaults in X11 R4 Message-ID: <8910021140.AA02923@expire.lcs.mit.edu> Date: 2 Oct 89 11:40:16 GMT References:Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 23 XGetDefaults() discovers this inside of InitDefaults() and loads in the .Xdefaults OF THE PERSON RUNNING THE SERVER. Correct. This is the expected (specified) and desirable behavior. Will this behavior still be present in R4? Yes. is there any clean way to avoid this problem, ignore .Xdefaults and only pay aattention to the loaded defaults? See below. (Alternatively, putenv() HOME to somewhere random?) is there an alternative way of checking defaults that doesn't try to get them from the .Xdefaults? XGetDefaults is just a convenience interface to a particular resource database. If you don't like the way it's set up, create your own (directly from the RESOURCE_MANAGER property of the display) and use XrmGetResource directly.