[comp.soft-sys.andrew] Configuration problem

nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (01/03/90)

Running the beta R4 release, I can't figure out any way to have
different preferences depending on environment variables such as
DISPLAY.  The problem is that I now run X on a color Sun4 with a big
screen in my office, and a smaller black and white GraphOn X terminal at
home.  In each case, the processes are running on my office workstation,
so that the "C=" and "M=" syntax for preferences is not useful.  Is
there any way to make my color and geometry preferences easily differ
depending on whether I'm using my home or office display?  Thanks.  --
Nathaniel

janssen@parc.xerox.com (Bill Janssen) (01/03/90)

> Excerpts from andrew: 2-Jan-90 Configuration problem Nathaniel
Borenstein@thu (565)

Running the beta R4 release, I can't figure out any way to have
different preferences depending on environment variables such as
DISPLAY.

I use a different preferences file for my two screens, and define the
environment variable PROFILES appropriately for each screen, before
starting any tools on that screen.  Each tool started (from rooms) then
inherits the correct environment.

Of course, PROFILES is the wrong name for the variable, and there
doesn't seem to be any way to have one preferences file include another,
but...

Bill

nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (01/03/90)

Yeah, separate preferences files is what I'm doing now, although I
hadn't stumbled on the PROFILES variable.  However, I'm not entirely
happy with it as a long term solution.  The worst part is what happens
to preferences that are set automatically, e.g. from "set options" in
Messages.

Would people find it repellent to extend the current "C=" and "M="
syntax to include a "D=" for display-dependent preferences?

bader+@ANDREW.CMU.EDU (Miles Bader) (01/04/90)

Nathaniel Borenstein <nsb@thumper.bellcore.com> writes:
> Would people find it repellent to extend the current "C=" and "M="
> syntax to include a "D=" for display-dependent preferences?

It would be less so, I think, to add something like "E(envvariablename)=", so you
could do whatever you want by setting an appropiate environment variable.

E.g.  E(DISPLAYTYPE)=stupidlittlescreen:...

-Miles