On Thu, 10 Jun 1999, Fredrik Hallenberg wrote:
> On Thu, Jun 10, 1999 at 12:29:51PM +0200, Stefan Farestam wrote:
> >
> > Hi,
> > It seems like the option --export-to-ps requires X to be
> > running. When I try "dia erf.dia -e erf.ps", a window
> > flashes briefly, and if do "unsetenv DISPLAY" I get:
> >
> > Gtk-WARNING **: cannot open display:
> >
> > Thus, it seems like X needs to be running in order to
> > export files to ps. Is there any way to get around this
> > since it would be most convenient to do batch conversions
> > of dia files without running X?
>
> This is a good point. There seem to be some design changes needed if this is
> to be possible though. To export a diagram to EPS it must be loaded with
> diagram_load(), which uses new_diagram(), which uses
> layer_dialog_update_diagram_list() which requires GTK and an open X display.
>
> Alex, would it possible to move that layer dialog call out from
> diagram_new()?
I'll take a look at it.
/ Alex