in reply to Re: How to detect X?
in thread How to detect X?
Lots of applications will fail,Really? For years, I would set $ENV{DISPLAY} in my profile (so if I would telnet/rsh/rlogin to another box, things would display at my screen - and if I started X somewhere else, DISPLAY would be reset). Yet, I would never had an application fail because of that.
See, if you don't have X running, X applications will fail. Not because $ENV{DISPLAY} is set, but because X isn't running. Non X-application don't give a shit about $ENV{DISPLAY}. The only thing that could "fail" is an X-application displaying on the wrong screen - but that would only happen if the environment had not setup $ENV{DISPLAY} - and then it would use a default variable instead of being undefined. Ho hum.
Using DISPLAY is just the convention with X.Indeed. The fallacy in your reasoning is that there's also a convention about DISPLAY (namely, it being unset) in a non-X environment. Unfortunally, that isn't true.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to detect X?
by Tanktalus (Canon) on Feb 21, 2005 at 17:14 UTC | |
by Anonymous Monk on Feb 22, 2005 at 10:42 UTC | |
by Tanktalus (Canon) on Feb 22, 2005 at 15:09 UTC | |
|
Re^3: How to detect X?
by jdporter (Paladin) on Feb 21, 2005 at 19:10 UTC | |
by Anonymous Monk on Feb 22, 2005 at 10:46 UTC | |
by jdporter (Paladin) on Feb 22, 2005 at 16:42 UTC |