Le mer, jui 25, 2001, à 12:59:51 -0400, Adam Di Carlo a écrit:
>
> Using any version of dia I've ever seen, including 0.88.1, I note that
> the export command, as in
>
> dia --export=figures/system-arch.png figures/system-arch.dia
>
> requires the use of of an X11 display.
> Is there any possibility of removing this requirement? I produce
> documentation from CVS, updated and built nightly from cron, and find
> the idea of putting the converted file (here 'system-arch.png') in CVS
> to workaround this problem somewhat distasteful.
Other way you could use: have a VNC display around.
The problem should have been in the bugzilla ; feel free to report it (and
pick it up if you have time). A good solution for that problem is sorely
needed indeed !
Making the common dia (or dia-gnome) binary run Xless if the -e argument is
given may be a bit tricky: what may be much faster and cleaner would
probably to make a separate (small) binary. libdia.a could be made a shared .so
file, with perhaps its gtk-specific routines quarantined in a
libdia-gtkstuff.a. Finally, in an ideal world, all object plug-ins and
shapes would be loaded on-demand, to speed up the overall execution of that
dia-export program.
What's tricky is that this binary will *still* have to link in the GTK or
GNOME libs, because some objects and the standard properties code do use
GTK/GNOME. But the property edition code path won't be executed in export
mode, so it should be okay to leave the GNOME stuff uninitialised while the
export takes place.
-- Cyrille
--
Grumpf.