On Tue, Nov 28, 2006 at 11:07:22AM +0100, Hans Petter wrote:
> I have for a long time had a printing problem in Tuxpaint. Currently I
> use Tuxpaint 0.9.15b in Ubuntu 6.10 but this has been the case for at
> least a year. Now my kids and I are really tired of it, and since it was
> not solved in the last upgrade I must get some help.
> The problem is that I am not able to print in colour. Whatever I do,
> Tuxpaint only prints in greyscale. I have tried to leave tuxpaint.conf
> with the default values, and also just using "lpr" as print command.
> Unnecessary to say, all other programs can print in colour.
Hrm, I tried setting set the "print command" to something that saves the
postscript output from Tux Paint ("cat > /tmp/tp.ps"), and then views it
("kpdf /tmp/tp.ps"), and it didn't even work.
I then tried using "ps2ps" to re-generate a new postscript file
("ps2ps /tmp/tp.ps /tmp/tp2.ps"), and was able to view that file with KPDF.
So my .tuxpaintrc file ended up with:
printcommand=cat > /tmp/tp.ps ; ps2ps /tmp/tp.ps /tmp/tp2.ps ; kpdf /tmp/tp2.ps
and that seemed to work. Replacing "kpdf" with "lpr" (assuming your printing
system supports PostScript) should get it to print.
Obviously, it'd be best to create a shell script for this, and it should
remove the temp files at the end. Temp files could be named something more
unique, too. (Sadly, ps2ps doesn't read from stdin, or write to stdout, so
the temp files are needed.) But... this should help, hopefully.
Sorry for the trouble! :(