envbvs@epb2.lbl.gov (Brian V. Smith) (07/06/89)
According to Doug Young, in his "X Window Systems Programming and Applications with Xt" book (p. 50), when XtInitialize() is called, if a resource is not found in the RESOURCE_MANAGER, the value for that resource is obtained from the user's .Xdefaults file in his/her home directory. So far I haven't had any luck with this. I have no problem loading a resource into the RESOURCE_MANAGER with xrdb and using it, so I know I am using the right string for the resource. It is not absolutely critical that the .Xdefaults file works; it is just a hell of a lot easier to debug programs using the .Xdefaults file rather than rerunning xrdb to load a new value for a resource each time I modify it. I am running MIT X11r3 with patches 1 through 8 (haven't installed 9 yet), Purdue speedups (not gcc, though) on Vaxstation II under Ultrix 3.0. Any help would be greatly appreciated. Thanks. _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory We don't need no signatures!
rws@EXPO.LCS.MIT.EDU (07/06/89)
According to Doug Young, in his "X Window Systems Programming and Applications with Xt" book (p. 50), when XtInitialize() is called, if a resource is not found in the RESOURCE_MANAGER, the value for that resource is obtained from the user's .Xdefaults file in his/her home directory. Read the book again. What it says is that if the *property* is not found, the .Xdefaults file is used instead. My guess is that the property is set. What you may want to do is set your XENVIRONMENT variable to point at your .Xdefaults file (or rename the file to be .Xdefaults-<host>.
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (07/06/89)
> According to Doug Young, in his "X Window Systems Programming and > Applications with Xt" book (p. 50), when XtInitialize() is called, > if a resource is not found in the RESOURCE_MANAGER, the value for > that resource is obtained from the user's .Xdefaults file in > his/her home directory. The information in Doug Young's book is correct, but the concept is a bit confusing. The $HOME/.Xdefaults file is only read if there are NO resources loaded onto the server. This is equivalent to the comment in this book that the .Xdefaults file will be searched if there is no value specified for the RESIOURCE_MANAGER property on the root window of the display that you using. If there are any resources loaded into your server (whether or not they match the resource requested) then the .Xdefaults file will not be searched. It is best to look upon .Xdefaults as a compatability feature left for people who were using this behavior in X10. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213