On Jan 8, 2007, at 9:14 AM, Jean-Marc Lasgouttes wrote:

"Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:

Bennett> However, I'm not sure that I'm doing it correctly. open-x11
Bennett> is supposed to start up X11.app, which is the GUI for the X
Bennett> server, and previously open-x11 would work on its own. Now
Bennett> (at least on my Intel Mac) open-x11 does nothing unless you
Bennett> give it a program to run. That program can't be xfig, since
Bennett> then DISPLAY isn't set and so it won't open the file from
Bennett> LyX. So I have it set to open X (which then fails, since
Bennett> X11.app has already opened X), after which it can set DISPLAY
Bennett> and so open xfig. Is that the right thing to do?

This is a bit ugly indeed :)

What is supposed to work (in the man pages) is
  open-x11 xfig
(assuming xig is on the path).

If you _really_ need to set DISPLAY, one could assume that
  DISPLAY=:0.0 open-x11 xfig
would work.

The trouble is that open-x11 isn't very sophisticated: it won't pass an argument to xfig and so will only bring up xfig with no document. So, here's a better route:

open -a X11; export DISPLAY=:0.0; xfig

I've created updated diffs for 1.5.0 and 1.4.x (attached).

Bennett

Attachment: lyxrc-dist-Mac-14x.diff
Description: Binary data

Attachment: lyxrc-dist-Mac-150.diff
Description: Binary data

Reply via email to