Problem with $DISPLAY

René J.V. Bertin rjvbertin at gmail.com
Mon Oct 13 07:09:59 PDT 2014


On Monday October 13 2014 14:34:15 Chris Jones wrote:

> >> Any scripts that make any assumptions on what $DISPLAY looks like are
> >> flawed by designed...

> My argument is not based on what some standard says about what DISPLAY 
> should or should look like, but the basic premise that extracting 
> information from $DISPLAY is just a bad idea and should be avoided.

In other words, you mean that *you consider* assumptions on $DISPLAY's information content to be design flaws, it's not a universal truth.
As long as there is documentation that's not contradicted/superseded by more recent/authoritative documents and that states that the 1st element of $DISPLAY refers to the X server host, using that information in code may not be the most future-proof way of doing things, but it might be the only way of doing things.

R.


More information about the macports-users mailing list