Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89886 - libgnomeprint >=2.8: missing printing options
Summary: libgnomeprint >=2.8: missing printing options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Printing Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 21:33 UTC by Daniel Kasak
Modified: 2005-08-04 11:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Re-enable printing options in CUPS printers shared via IPP browsing (enable_network_printer_options.patch,591 bytes, patch)
2005-05-04 21:14 UTC, Daniel Kasak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kasak 2005-04-20 21:33:47 UTC
The bug is basically described at http://bugzilla.gnome.org/show_bug.cgi?id=170753

It is currently not fixed, and I'm not confident that it will be fixed in the near future. A workaround ( or possible fix ) is posted part-way down the page, which I'll repeat here:

recompile libgnomecups with 
go_directly_to_printer_when_possible = TRUE;
set in libgnomecups/gnome-cups-printer.c

I have no idea how to do this, so I'm instead posting this bug report in the hope that the above is included in the ebuild until it's fixed upstream.

Reproducible: Always
Steps to Reproduce:
1. Upgrade to libgnomeprint 2.8 or greater
2. Open any gnome application that uses libgnomeprint to print
3. Select a CUPS printer shared via IPP browsing
4. In the dialog, choose the 'paper' tab, and inspect the ( lack of ) paper tray options.

Actual Results:  
Paper tray options combo box says:
no options are defined

Expected Results:  
Paper tray option combo box should list paper tray options from CUPS-provided
PPD ( eg Tray 1, Tray 2, etc ).

If I downgrade to libgnomeprint and libgnomeprintui version 2.6.x, I get the
paper tray options back. These are *essential* to our desktop use.
Comment 1 foser (RETIRED) gentoo-dev 2005-04-24 14:40:01 UTC
printing guys could you check this out ?

I'm not in a position where I can even reproduce this stuff.
Comment 2 Daniel Kasak 2005-05-04 21:14:19 UTC
Created attachment 58097 [details, diff]
Re-enable printing options in CUPS printers shared via IPP browsing

This patch re-enables printing options for us. I of course think this is grand
:)

A note just above the section that I patched in the source says:

/* JEG
 * Disable this for now.  The default SuSE network config does not
 * produce a resolvable hostname for the localhost and cups has a bug
 * that will produce an infinite loop when presented with an invalid
 * hostname.  This will also produce a hang if the remote printer is
 * unavailable and we do a syncronous lookup. */

I don't quite understand what sort of issues this could cause if the 'remote
printer is unavailable and we do a syncronous lookup'. I will report back if I
experience any problems.
Comment 3 Luis Medinas (RETIRED) gentoo-dev 2005-08-02 10:53:02 UTC
did you continue to have this problems Daniel ? The patch listed here works fine
for you ? 
Comment 4 Daniel Kasak 2005-08-02 15:06:57 UTC
Yes the patch works for me.
I am by no means a C programmer, and have no idea what effects it would have on
other people's systems. In particular, the comment:

/* JEG
 * Disable this for now.  The default SuSE network config does not
 * produce a resolvable hostname for the localhost and cups has a bug
 * that will produce an infinite loop when presented with an invalid
 * hostname.  This will also produce a hang if the remote printer is
 * unavailable and we do a syncronous lookup. */

sounds a little unfortunate for SuSE users. Either way, it fixes the issue on my
system; all paper options are available on network CUPS printers with the patch
applied. I haven't had any issues myself, nor have I had any reports of problems
from users ( 5 users on our network using Gentoo ).
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2005-08-04 11:41:34 UTC
libgnomecups-0.2.0-r1 with the new patch is in cvs. Thanks and sorry for the delay.