Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ucbvax!flopn2.csc.ti.com!dbeck From: dbeck@flopn2.csc.ti.com (Dave Beck) Newsgroups: comp.windows.x.motif Subject: Re: app-defaults resources Message-ID: <9105241503.AA14526@tilde> Date: 24 May 91 15:03:49 GMT Article-I.D.: tilde.9105241503.AA14526 Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 37 I've found out a little more in reference to my post of yesterday: > My understanding was that resources defaulting looks first >at .Xdefaults, then user app-defaults files, then system app-defaults >files. I've looked through all the FMs, and as near as I can figure >out the way most mwm resources are through a configFile resource on >the ApplicationShell widget. It points to a resource file that in most >cases is .mwmrc. The windowMenu resource doesn't seem to attach directly >to any classes, so I can't do an XtSetArg for it. > I have tried specifying the windowMenu in .mwmrc as well as in the >app-defaults file. I've tried Mwm*SmartShell*windowMenu (what the FM says >should work) and other variations with no luck. Certain mwm resources (menu definitions, button bindings) are looked for in $HOME/.mwmrc (or /usr/lib/X11/system.mwmrc, or some file specified in a configFile resource on the ApplicationShell widget). Others (colors, keyboard focus, etc) are looked for in .Xdefaults, a user app-defaults file (usually $HOME/Mwm), and a system app-defaults file /usr/lib/X11/app-defaults/Mwm. Specifying the windowMenu in $HOME/Mwm worked as expected. However, from the documentation I should be able to move this down into my app-defaults directory (like all other application specific resource files), and with the environment variables set right it should work. Although I have set XAPPLRESDIR, XFILESEARCHPATH, and XUSERFILESEARCHPATH to $HOME/app-defaults, none let me get to $HOME/app-defaults/Mwm. What am I missing this time? I need a better understanding of how all this works, and Motif's FMs aren't helping much. Dave Beck dbeck@flopn2.csc.ti.com Software Systems & Applications Lab Texas Instruments PS: If I represented TI, would they allow me to look this stupid?