On Tue, 25 Jan 2005, Herbert Alexander wrote:

> > These are the error messages generated by both programs:
> >
> > (gnumeric:468): Gtk-WARNING **: cannot open display:  This occurs
> > with Xll turned on.
> >
>
> If you're running from an OS X terminal you have to set the DISPLAY
> environment variable yourself, even if X11 is running (I should have
> said that).  That should be covered in the article referenced above.
>
Alternately, you can set DISPLAY in your .login file (which generally
gets read for new windows, but not every shell in that new window):

if ($?DISPLAY == 0) then
  if ($?REMOTEHOST) then
    setenv DISPLAY ${REMOTEHOST}:0
  else
    setenv DISPLAY :0
  endif
endif

If you don't login to your Mac from other places, that may
be a bit overkill and "setenv DISPLAY :0" is all you need.
Since Darwin is kind enough to set REMOTEHOST for you,
though, you can use it for DISPLAY in most cases.

Wayne

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wayne Brehob    [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to