Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!kit From: kit@athena.mit.edu (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Captain Defaults vs. the Resource Mangler from Outer Space Keywords: someone's had too much to think.. Message-ID: <7959@bloom-beacon.MIT.EDU> Date: 14 Nov 88 00:22:18 GMT References: <993@godot.radonc.unc.edu> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: kit@athena.mit.edu (Chris D. Peterson) Organization: Massachusetts Institute of Technology Lines: 37 This can actually be done quite easily, you just have to know how :-). Resources are retrieved in the following manner (I think I got them all but I am going from memory). 1) Look in /usr/lib/X11/app-defaults/ or where the environment variable $XAPPLRESDIR/ points to. (Toolkit application only?) 2) a - If no resources are on the server then use .Xdefaults b - If resources exist on the server then get them off the server. 3) Look in the users $XENVIROMENT file. (This is were you put per machine resources.) As each of these steps in taken, and the resources are smashed if they conflict, so that the order of importance is 3,2,1. Now about the XENVIRONMENT file. If the environment variable XENVIRONMENT is not set the file used for you resources is $HOME/.xdefaults- where is the name of the current machine. Thus you can either set up you XENVIRONMENT correctly, or you can use the ~/.Xdefaults- files. For further reading read the X11R3 Xlib manual - page 199. Cheers, Chris D. Peterson Project Athena Systems Development Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-342C 77 Massachusetts Ave. Cambridge, MA 02139