Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcda!eric From: eric@hpfcda.HP.COM (Eric Flink) Newsgroups: comp.sys.hp Subject: Re: Is there a way to make xsession use xrdb -cpp ? Message-ID: <970007@hpfcda.HP.COM> Date: 24 Aug 90 18:15:20 GMT References: <1537@sdrc.UUCP> Organization: Hewlett-Packard, Fort Collins, CO Lines: 32 > 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