Am 23.12.2011 um 14:35 schrieb Pavel Sanda:

> Abdelrazak Younes wrote:
>>> so we need new RC option or even better to test internally whether
>>> we are on local box. i'm not sure how to detect it reliably
>>> but one possible route seems to be DISPLAY environment variable.
>>> (i see DISPLAY=:0.0 on local connection and DISPLAY=somehost:10.0
>>> on the forwarded one...)
>> 
>> That is a good idea.
> 
> just to check, could people around sitting on linux or mac systems
> report back their output of the command (to have some review):
> set |grep DISPLAY

I don't think it matters on mac... 
The DISPLAY variable is used by X-Server only, LyX on mac isn't 
a X-Windows application.

On Linux the check for DISPLAY is a 98% solution. Every X-Application
parses the command line options and understands the 
-display xserver:display.screen option. One should check that too
if the guessing by display name is the way to go. This option overrides
the environment variable value.

On RHEL I have DISPLAY=:0.0 (this is the standard AFAIK).

Stephan

Reply via email to