[Gs-dgs-devel] Detect which the DPS implementation is DPS NX/AGENT or DPS/X.

Juliusz Chroboczek jch@pps.jussieu.fr
14 Mar 2001 19:49:52 +0100


MY> Is there any good way to detect the DPS implementation is DPS
MY> NX/AGENT(dgs) or DPS/X from client side?

There are two issues here -- working out whether we're a server-side
or a client-side implementation, and distinguishing between the two
DPS implementations derived from GS.

I have no ready answer for the former problem -- I guess you could
delve into the internals of the DPSPrivContext structure.

As to the latter one, I guess the best thing to do would be to make
sure we use different product strings in dgs and the DPS extension.  I
suggest that dgs should use one of

  ``dgs (GNU Ghostscript)''
  ``dgs (Aladdin Ghostscript)''

and the DPS extension should use one of

  ``DPS (GNU Ghostscript)''
  ``DPS (Aladdin Ghostscript)''

The string in brackets should correspond to what the underlying
version of GS returns.

If the dgs developers agree, I'm going to implement this scheme in the
next version of the DPS extension.

                                        Juliusz