[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Printing and svgalib messages: my solution (hack)



Ok, here's what I've done to be able to print without having svgalib print
messages all over.
Note that it only applies to people who use gs-aladdin in their filter,
and that it's the "quick and dirty" kind of solution.

I've made a file called /etc/svgalib.errors, in which I have all the error
messages I don't want to appear (I got them from a "strings
/usr/lib/libvga.so.1.2.11").
In the filter file, pipe the output of each instance of gs in a "grep -F
-f /etc/svgalib.errors -v". This will give you lines of this type:
0       %!              filter  /usr/bin/gs  -q -dSAFER -dNOPAUSE -r180
-sDEVICE=epson -sOutputFile=- - | grep -F -f /etc/svgalib.errors -v

For those who can't even reach the stage where it prints something (even
with error messages), check the permissions on your spool directory, mine
were not correct (I believe they were created that way by
magicfilterconfig), and perhaps (security problem ?) chmod +s
/usr/bin/gs.real.

I _had_ to do all this to make printing work. I won't pretend I know
anything about the subject and tell you this is the right solution, but
then it works for me, so it may work for you.

					Mat



--
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: