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
eric@hpfcda.HP.COM (Eric Flink) (08/25/90)
> 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). Xsession loads the resource files itself; it does not use xrdb. Therefore there is no way to simulate the cpp functionality. However, xsession does provides a method to load a different color scheme file when you are on a monochrome top. If DisplayPlanes < 2 then the file specified by XSession*MonoScheme is loaded in lieu of XSession*ColorScheme. Regards, Eric Flink 1 303 229 2313 3404 East Harmony Road Fort Collins, CO 80525 This posting does not reflect the official position of Hewlett-Packard Company