[cups.bugs] [MOD] STR #3503: Lpr and Lpq choose default printer differently

Nadav Har'El nyh at math.technion.ac.il
Sun Feb 14 12:30:00 PST 2010


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

On my system (Fedora 12, with cups-1.4.2-20.fc12.x86_64), I've been seeing
a very strange situation: "lpq" works with my system-default printer,
while "lpr" doesn't appear to know what is the default:

$ lpr file
lpr: Error - no default destination available.
$ lpq
p2 is ready
no entries

It took me a long time to track down this bug. It turns out that I had an
old file ~/.lpoptions in my home directory, containing the single line
"Default Print-to-PDF". I have no idea where this file came from, but
there is no reason why it should have a different effect on lpq and lpr -
so whereas lpq continues to find the system's correct default printer, lpr
doesn't. They should either both use the system default printer, or both
fail with an error (and it would have been nice to see a more accurate
error message).

Moreover, I am puzzled what is this ~/.lpoptions file at all. The
lpoptions(1) manual page says that the user configuration is kept in
~/.cups/lpoptions. Is the manual page mistaken?

Link: http://www.cups.org/str.php?L3503
Version: 1.4.2





More information about the cups-devel mailing list