[comp.windows.x] Is there a way to make xsession use xrdb -cpp ?

evgabb@sdrc.UUCP (Rob Gabbard) (08/22/90)

I'm using the Instant Ignition package from HP under HP-UX 7.0. Its a great
package but I'm having some problems with the xsession program started by xlogin
after logging in.  I use a variety of devices of different resolutions and
different depths. Because of this I like to use the cpp feature of xrdb to
alter the resources used when my .Xdefaults file is parsed by xrdb when xrdb is
called by my .x11start (which is started by xsession).  A sample entry in my 
.Xdefaults might look like this:

	#if PLANES <= 4
	XSession*ColorScheme:	/usr/lib/X11/color_schemes/monochrome
	#else
	XSession*ColorScheme:	/usr/lib/X11/color_schemes/pastel
	#endif

This logic works fine for all applications EXCEPT for xsession because it
appears that xsession is loading its resource database with the equivalent
of "xrdb -nocpp" BEFORE it runs .x11start (which calls xrdb -cpp).

I've worked around most of this by including the resources that are in
the /usr/lib/X11/color_schemes for the sub-applications started by xsession
in my .Xdefaults.  However, I'd like to be able to use xsession's rootWindow
properties to set my root window characteristics differently depending on the
device.  

I don't want to have to use .Xdefaults-host files since we have alot of 
machines and they are constantly coming and going.

Does anyone know how to force xsession to do the equivalent of "xrdb -cpp" ?


-- 

Rob Gabbard (uunet!sdrc!evgabb)  
Technical Development Engineer   
Structural Dynamics Research Corp