[Kde-print-devel] [Bug 156639] New: KDE print system never worked (with solution)

Nick Warne nick at ukfsn.org
Fri Jan 25 12:39:51 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=156639         
           Summary: KDE print system never worked (with solution)
           Product: kdeprint
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-print-devel kde org
        ReportedBy: nick ukfsn org


Version:            (using 4.00.80 (KDE 4.0.80 >= 20080104), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-rc8-gd8c89eb3

Basically, this is a heads-up on this issue I found.

CUPS 1.2.2
LPRng 3.8.32

Not one of my KDE applications would print - all goes through the motions, but no output.

Using other apps (GTK etc.) worked, and CUPS test page from server works OK et al.

After investigation, it appears there is an issue with 'lpr'.

Both LPRng and CUPS produce a binary called 'lpr'.  Usually the distro renames CUPS 'lpr' to 'lpr.cups', or 'lpr-cups' (or similar).  Also, some rename both (lpr-lprng etc.).

I found that I have LPRng 'lpr' and 'lpr-cups'.

Now, KDE print uses 'lpr'.  And on my system, with Samsung 1610 printer, this produces an error so nothing gets printed:

okular(10691)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=4 78x101 0 async == false
okular(10691)/okular (app) Okular::Document::requestPixmaps: request id=3 459x594 0
okular(10691)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 459x594 0 async == false
okular(10691)/okular (app) Okular::FilePrinter::doPrintFiles: Executing "lpr" with arguments ("-P", "samsung", "-#1", "-J", "water.pdf", "-o", "media=A4", "-o", "portrait", "-o", "sides=one-sided", "-o", "outputorder=normal", "-o", "Collate=False", "-r", "/tmp/kde-nick/okularQ10691.ps")
lpr: Illegal option 'o'
...
dumps lpr options here and stops.



I don't know why LPRng 'lpr' produces that error, but reading up it looks like one of the '-o options' is not recognised/illegal for my printer.

BUT! changing to use the CUPS 'lpr' (symlink lpr -> lpr-cups, or a straight replacement with CUPS lpr in /usr/bin/ ) all prints and works wonderfully.

This is bit of a mess.

Nick


More information about the Kde-print-devel mailing list