This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Work around for "Can't open display"



There is no C program needed for it.  It is defined by Windows at OS level.
All you need in startxwin.bat

if %OS%== "Windows_NT" XWIn....
if %OS% == " " XWIN..............

This is already in new startxwin bat and I do not believe it has anything to
do with OS DEFINE.  This simply a TPC/IP issue on local machine.  X is a
networked based server thus depends upon network protocols.

Suhaib

-----Original Message-----
From: Enoch Wu
To: cygwin-xfree@cygwin.com
Sent: 4/10/2001 5:33 PM
Subject: Work around for "Can't open display"

Hi all,

I remember seeing a C program that can read the OS type on
MS platforms. For now, a work around is given below:

Add this to your .bashrc:

export OS="Windows_NT"    <---- if you have NT type.

export OS=""              <---- if you have Win9x type

EW
Enjoy.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]