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"


Everyone with a "Can't Open Display" problem should take a look at their
OS environment variable as defined by their Network Admin.

Listen my friend. I am saying that my environment variable is OS=Win95 as set bythe network admin. As a consequence, setting OS=" " in .bashrc is the trick
that allows me to run XWin95. Prior to adding this in .bashrc, I could not
run XWin95 and got "Can't Open Display". As usual, it works for me but may 
not work for others because everything else may not be the same.  


On Tue, Apr 10, 2001 at 08:43:43PM -0400, Suhaib Siddiqi wrote:
> 
> 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]