Re: print, gs and svgalib.
On Mon, 15 Sep 1997, Mathieu Guillaume wrote:
>
> On Mon, 15 Sep 1997, joost witteveen wrote:
> > > I'm using magicfilter to print, which in turns uses gs-aladdin, which uses
> > > svgalib.
> > > The problem is svgalib keeps writing things like 'Using VGA driver' or
> > > other messages. Those get back to lpr and end up printed at the beginning
> > > of whatever it was I wanted to print.
> > > everything I want to print ?
> >
> > If I remember correctly, when gs is run as non-root, it doesn't
> > print that svgalib message.
>
> Well, it did :) Perhaps lpr automatically runs the filter as root, but
> since lpr is not suid root, I don't see how it would.
I think that the problem is in the wrapper program:
the file /usr/bin/gs is not the "real" ghostscript interpreter
(which is moved into gs.real): instead it has been added
to the debian package
to assure that gs.real is called with the correct
parameters, like papersize. In particular, if gs is called
from a console (TERM=linux), it adds a -sDEVICE=lvga256
option (lvga256 is the correct device for svgalib output).
If a -sDEVICE= option is already specified by the user, this
overrides the -sDEVICE=lvga256, so all seems OK.
The problem is that if -sDEVICE=lvga256 appears among
the options of gs.real, then svgalib is loaded even if never used
and the messages on using SVGA appear in the stdout.
I think, the wrapper should be changed so that a -sDEVICE=lvga256
is added only if no -sDEVICE= option is supplied by the user.
I will correct this in the next release of gs and gs-aladdin
(i am the new gs-maintainer).
A possible temporary
patch is to call /usr/bin/gs.real instead of /usr/bin/gs
in the filter (however, in this case the papersize parameters should
also be supplied by hand).
Regards,
Marco
======================================================================
Marco Pistore email: pistore@di.unipi.it
University of Pisa marco@pisa.sbn.it
tel: ++39 (50) 40031
Gnu/Debian Linux & TeX/Latex fan fax: ++39 (50) 887 226
======================================================================
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . Trouble?
e-mail to templin@bucknell.edu .
Reply to: