Posted on 1997-04-11
Is there a way for a .login/.profile/.*shrc to autmatically
assign $DISPLAY so that X-windows go to the original login
monitor? When answering, consider that I have already seen
four solutions and each has one of the following flaws:
1. Not portable to all Unices.
2. Hard-coded to the user's "usual" host.
3. In the case of chained rlogins, doesn't get all the way
back to the original host; picks a machine in between.
4. Works usually, but depends on the format of something
like 'ps' or 'who' or 'w', etc. and screws up when
the output format varies (which happens sometimes).