Bug 157878 - lpoptions ignored
lpoptions ignored
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: libgnomecups (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Matthias Clasen
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-16 13:55 EDT by Tim Waugh
Modified: 2008-03-04 23:12 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-04 23:12:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
respect user default CUPS options (5.11 KB, patch)
2007-07-03 08:17 EDT, Stijn Hoop
no flags Details | Diff
patch for CUPS GtkPrint backend to honor ~/.cups/lpoptions (5.28 KB, patch)
2007-07-17 04:23 EDT, Stijn Hoop
no flags Details | Diff

  None (edit)
Description Tim Waugh 2005-05-16 13:55:22 EDT
Description of problem:
When printing a job to a remote CUPS queue using lp or lpr, the options seen in
'lpoptions -p dest' are included in the job.  When printing from an application
using libgnomecups (such as gedit or evince), these options are not sent with
the job.

Version-Release number of selected component (if applicable):
libgnomecups-0.2.0-2

How reproducible:
100%

Steps to Reproduce:
1. Make a queue called 'dest' on server1.
2. Edit /etc/foomatic/filter.conf on server1 and add 'debug: 1'
3. On server1, make sure server2 has access to the queue.
4. On server2, 'lpoptions -ddest -ofitplot'
5. On server2, 'lp -ddest /usr/share/evolution/2.2/help/quickref/C/quickref.pdf'
6. On server1, cp /tmp/foomatic-rip.log /tmp/foomatic-rip.lp
7. On server2, 'evince /usr/share/evolution/2.2/help/quickref/C/quickref.pdf'
and print it to dest.
8. On server1, cp /tmp/foomatic-rip.log /tmp/foomatic-rip.evince
9. Compare /tmp/foomatic-rip.lp and /tmp/foomatic-rip.evince, and the print-outs.

Actual results:
foomatic-rip.lp shows the 'fitplot' option is passed, foomatic-rip.evince shows
it is not.

Print-out from 5 is scaled to fit, but from 7 is not.

Expected results:
Both print-outs scaled to fit.
Comment 1 Matthew Miller 2006-07-10 17:08:20 EDT
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!
Comment 2 Tim Waugh 2006-07-12 07:08:25 EDT
I guess network default options will fix this in FC6 anyway.
Comment 3 Stijn Hoop 2007-07-03 08:16:03 EDT
Tim, unfortunately this is not correct.

We have a network printer with duplex unit, which has a default of printing on
both sides. However it is impossible to make a *user* default option for one of
our users, who by default wants everything printed single-sided.

Fortunately Pascal de Vuijst fixed this for Ubuntu, see

https://bugs.launchpad.net/ubuntu/+source/libgnomecups/+bug/34112

especially comment 38. I'll upload his patch here as well. I've tested a rebuilt
libgnomecups22 on Fedora Core 6, and this problem is fixed for gedit.
Unfortunately Evince still doesn't comply with these user defaults, and I'm not
sure why. I'm investigating this next.

Note also that libgnomecups is looking for user options in the wrong place --
but that's a separate bug that I'll file also.
Comment 4 Stijn Hoop 2007-07-03 08:17:48 EDT
Created attachment 158429 [details]
respect user default CUPS options

Patch by Pascal de Vuyst that lets libgnomeprint respect the user default CUPS
options, as set by lpoptions(1).
Comment 5 John (J5) Palmieri 2007-07-03 13:09:11 EDT
this needs to be refactored for gtkprint also
Comment 6 Stijn Hoop 2007-07-17 04:23:01 EDT
Created attachment 159409 [details]
patch for CUPS GtkPrint backend to honor ~/.cups/lpoptions

Turned out that Evince used GtkPrint instead of libgnomecups, indeed (I didn't
know that).

Attached is a patch to the FC-6 GTK+ (2.10.8) that enables both a user-set
default printer as well as user-set default options for printers.

As this is my first C code in a very long time, there's bound to be errors, so
please review carefully :)
Comment 7 Stijn Hoop 2007-08-22 07:53:30 EDT
Reported upstream as bug 469210 (
http://bugzilla.gnome.org/show_bug.cgi?id=469210 ).
Comment 8 Matthias Clasen 2008-03-04 23:12:13 EST
These patches are in rawhide now.

Note You need to log in before you can comment on or make changes to this bug.