Version: (using KDE KDE 3.4.1) Installed from: Gentoo Packages Compiler: gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) OS: Linux Out of a sudden (or not) kprinter refused to print on my default printer. From cups, printing is no problem. I tried to uninstall and reinstall the printer. no succes. All I get is the error popup "error while printing files". When launching kprinter from xterm with a ps file as argument, I get the following on the command line when clicking on print: "QFile::open: No file name specified". When installing the very same printer with the very same driver but just with a different printer name, I can print without problems. I already deleted all in /tmp and /var/spool/cups and also moved away my ~/.kde but no success.
On 23 September 2005 15:13, mani@access.unizh.ch wrote: > When installing the very same printer with the very same driver but just > with a different printer name, I can print without problems. What name do you give to the printer when it doesn't work and what name when it works?
Not working is the printer name LaserJet4050 Working is LaserJet4050#2 But LaserJet4050 used to work until something very strange happened, and I have no glue what that could be.
One more detail that might be of importance. It already happend once and at that time I just decided to stay with another printer name. Those two printers have in common that they are connected by TCP.
Created attachment 12787 [details] strace output strace -olog /tmp/test.ps selected printer was LaserJet4050 and printing got activated with ALT-P and error message got confirmed with ENTER (no mouse movement during printing). /tmp/test.ps is a valid ps file and can be printed on the LaserJet4050#2 Hope this helps to nail down the problem.
Two more questions: 1) what is in your ~/.lpoptions file 2) ca you print with lpr from the command line to the printer name with which kprinter fails?
marco@pingu ~ $ more .lpoptions Dest LaserJet4050 PageSize=A4 Resolution=600dpi _kde-filters=true Default LaserJet5 _kde-filters=true Those 2 Printers are exactly the ones that can not be accessed. Why? And what caused those entries? I never manually edited this file. marco@pingu ~ $ echo "foo" | lpr -PLaserJet4050 prints like a charm.
Remove the _kde-filters=true items. This comes from an incompatibility between kdeprint and CUPS. To make it short, when editing this file with CUPS (through lpoptions for example), an item like "_kde-filters=" is converted to "_kde-filters=true" which kdeprint doesn't understand. Michael.
Michael, thanks! It's working again. Seems there are other ways on how the ~/.lpoptions is adjusted since I did not even know about lpoptions (it seems to me that while updating a package something must have happened but this still seems strange since updating packages is done by root and ~/ is a normal user). Wouldn't it be an idea to make kprinter understand _kde-filters=true? Or is it CUPS that does not obey the standards? Thanks again! This really caused some pain here.
It's not a standard, it's CUPS-specific stuff. So I guess it's up to kdeprint to be more compliant with CUPS :-)
According to comment 8 this bug can be closed as FIXED.
Closing old Resolved status bug.