Work around for "Can't open display"

Suhaib Siddiqi ssiddiqi@inspirepharm.com
Tue Apr 10 17:43:00 GMT 2001


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.



More information about the Cygwin-xfree mailing list